Page 1 of 1

End of period date as yyyymmdd format

Posted: Thu Aug 04, 2016 2:30 pm
by Crystine
Hi,

I would like to use wfsave to export series into a csv file with the _date_ as the end date of the period and with the format of yyyymmdd. Is there a way to do it? Please provide some suggestions. Now I use @enddate option but the format is not right. I would like the format to be yyyymmdd. Thank you.

Crystine

Re: End of period date as yyyymmdd format

Posted: Thu Aug 04, 2016 2:54 pm
by EViews Gareth
You'll have to create an alpha in the workfile with the format you want, then save that alpha to the csv.

Code: Select all

alpha mydate = @datestr(@enddate, "YYYYMMDD")

Re: End of period date as yyyymmdd format

Posted: Fri Aug 05, 2016 3:56 pm
by Crystine
Thank you. It works well.