End of period date as yyyymmdd format

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator

Crystine
Posts: 2
Joined: Thu Aug 04, 2016 2:24 pm

End of period date as yyyymmdd format

Postby Crystine » Thu Aug 04, 2016 2:30 pm

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

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13312
Joined: Tue Sep 16, 2008 5:38 pm

Re: End of period date as yyyymmdd format

Postby EViews Gareth » Thu Aug 04, 2016 2:54 pm

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")
Follow us on Twitter @IHSEViews

Crystine
Posts: 2
Joined: Thu Aug 04, 2016 2:24 pm

Re: End of period date as yyyymmdd format

Postby Crystine » Fri Aug 05, 2016 3:56 pm

Thank you. It works well.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 12 guests