change date format in pagesave

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

BT454
Posts: 139
Joined: Wed Aug 02, 2017 6:07 am

change date format in pagesave

Postby BT454 » Tue Nov 03, 2020 12:35 pm

Hi!
Is there a way I can change the date format that accompanies data when using pagesave?
I'd like for the date to appear as yyyy-mm-dd
Thanks!
Bob

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

Re: change date format in pagesave

Postby EViews Gareth » Tue Nov 03, 2020 12:45 pm

Create an alpha series with the date format you want:

Code: Select all

alpha mydate = @datestr(@date, "YYYY-MM-DD")
then use the noid option on pagesave to not have EViews save the date, and save mydate instead.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests