Hello,
I'm trying to convert a date string in the format of 1999M02 (date string obtained from: smpl if seriesX <> na, %firstdate = @otods(1)) to a date value. Could you please help? I've been looking and googling but can't figure out how.
Thanks,
vivien
Convert date string to date value
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Convert date string to date value
Hello,
I did look at @dateval. But I need to provide the format of the date string and I don't know what I'm supposed to use as formats shown in the manual are all in normal date formats such as "mm/dd/yyyy", "month dd, yyyy".
So, @dateval("1999M02", "what do I put in here?")
Thanks,
vivien
I did look at @dateval. But I need to provide the format of the date string and I don't know what I'm supposed to use as formats shown in the manual are all in normal date formats such as "mm/dd/yyyy", "month dd, yyyy".
So, @dateval("1999M02", "what do I put in here?")
Thanks,
vivien
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Convert date string to date value
You can leave the second argument blank. EViews will figure it out.
Re: Convert date string to date value
Thanks! It works!
Who is online
Users browsing this forum: No registered users and 2 guests
