Getting date not to skip the 0s

For questions regarding programming in the EViews programming language.

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

miorinnovo
Posts: 199
Joined: Sun Mar 01, 2015 5:01 pm

Getting date not to skip the 0s

Postby miorinnovo » Mon Jun 29, 2015 1:58 pm

Hi, in this post http://forums.eviews.com/viewtopic.php?f=5&t=12573 Gareth suggested using the code: @datestr(mydateseries, "yyyymmdd")

When I do this the months and days that start with a zero only show 1 digit. for example january 1 2015 is 201511 instead of 20150101.

Any idea how to get the 0's to show up?

Thanks

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

Re: Getting date not to skip the 0s

Postby EViews Gareth » Mon Jun 29, 2015 2:03 pm

@datestr(mydateseries, "YYYYMMDD")

miorinnovo
Posts: 199
Joined: Sun Mar 01, 2015 5:01 pm

Re: Getting date not to skip the 0s

Postby miorinnovo » Tue Jun 30, 2015 11:20 am

Thanks Gareth!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest