European/American dates

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

Macrodata
Posts: 22
Joined: Tue Aug 02, 2011 5:52 pm

European/American dates

Postby Macrodata » Mon Nov 14, 2011 7:00 pm

I am importing data into a workfile and want the program to switch to an American date format for import and switch back to European afterwards. I can do this manually using options/general options/date representation. Was just wondering if there is some code I can use to automate this process?

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

European/American dates

Postby EViews Gareth » Mon Nov 14, 2011 8:39 pm

There isn't a command to do it, no. However you can probably read in the dates correctly without needing to change that option.

Macrodata
Posts: 22
Joined: Tue Aug 02, 2011 5:52 pm

Re: European/American dates

Postby Macrodata » Tue Nov 15, 2011 2:20 pm

Just to clarify I am fetching directly from a Haver database that is using the American format for its daily data. Because I am working in the european format I am getting the illegal date error.

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

Re: European/American dates

Postby EViews Gareth » Tue Nov 15, 2011 2:28 pm

Fetching from a Haver database shouldn't rely on your date option at all. Haver stores dates as YYYYMMDD, as far as we know, and EViews will translate that into whatever option you have.

Could you provide more precise details on exactly what you're doing (including the name of the Haver database etc...)?


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 0 guests