Hi,
I found that datenext is not working properly using monthly data. For example, while the first command below gives the correct result on my comupter, the command below does not. I was able to reproduce this on other computers as well:
show @datenext(@dateval("1995M01"), "mm")
show @datenext(@dateval("2000M03"), "MM")
Regards
datenext bug
Moderators: EViews Gareth, EViews Moderator
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13319
- Joined: Tue Sep 16, 2008 5:38 pm
Re: datenext bug
What result did it give you that was incorrect?
I just ran it on my PC and it gave the correct date (2000/04/01)
I just ran it on my PC and it gave the correct date (2000/04/01)
Follow us on Twitter @IHSEViews
Re: datenext bug
It seems to only be an issue with M3, M6, M9 and M12
M3 gives me 2000Q2, M6 200S2 M9 2000Q4 and M12 2001
M3 gives me 2000Q2, M6 200S2 M9 2000Q4 and M12 2001
Re: datenext bug
Oops using EViews 10 Enterprise March 15 2018 build
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13319
- Joined: Tue Sep 16, 2008 5:38 pm
Re: datenext bug
Note that the function will return a date. As in a single day.
2000Q2 is the same thing as 2000M6, which is the same thing as 2000/06/01.
If you would like the result shown in a different date format, change the display format in which you are displaying the date.
2000Q2 is the same thing as 2000M6, which is the same thing as 2000/06/01.
If you would like the result shown in a different date format, change the display format in which you are displaying the date.
Follow us on Twitter @IHSEViews
Who is online
Users browsing this forum: No registered users and 30 guests