Dates in a series saved as a day and not fixed character

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

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

CharlieEVIEWS
Posts: 202
Joined: Tue Jul 17, 2012 9:47 am

Dates in a series saved as a day and not fixed character

Postby CharlieEVIEWS » Thu Aug 06, 2015 6:17 am

Dear all,

I have been collating a large number of individual csvs through unstructed workfiles, transferring dates from one series into another. I have a final 'master' file. However, when I attempt to write the master file to a csv, txt, .dat, xls, xlsx, the dates are being converted into the scalar represenations( fixed characters?) that eviews has them stored under (.e.g 733996) instead of the day representation which you see in the workfile. Is there any way\trick to save them out as dates (e.g. 2013-04-09 etc) as opposed to fixed characters? cant figure it out.

Best wishes, help appreciated!

Charlie

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

Re: Dates in a series saved as a day and not fixed character

Postby EViews Gareth » Thu Aug 06, 2015 7:46 am

It shouldn't do that, but you can always create a datestring series.

Code: Select all

alpha mydates = @datestr(@date, "YYYY-MM-DD")

CharlieEVIEWS
Posts: 202
Joined: Tue Jul 17, 2012 9:47 am

Re: Dates in a series saved as a day and not fixed character

Postby CharlieEVIEWS » Thu Aug 06, 2015 8:44 am

Argh, that must be the only function i didnt try. Thanks Gareth. I think the way dates in series are being written to disk in general is a little bit inconsistent. After extensive testing, EV9 would seldom save it as a date representation, but at other times as a fixed character, although I couldnt discern what was causing the variation.

Thanks for your help,

Charlie


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests