Bug in @DateAdd-function or date format

For notifying us of what you believe are bugs or errors in EViews.
Please ensure your copy of EViews is up-to-date before posting.

Moderators: EViews Gareth, EViews Moderator

MOG
Posts: 21
Joined: Sun Aug 25, 2013 6:42 am

Bug in @DateAdd-function or date format

Postby MOG » Thu Jul 31, 2014 2:14 am

Hi,

Im using EViews 8.

There seems to be a bug in the date format, or @DateAdd-function:

The code @DateAdd(@DateVal(@Date), -1, "MM") returns NA when

@Date = "07/31/14", i.e. when @DateVal(@Date) = 735444

Remarks:
1) The same problem holds for quarterly frequency, but not for yearly or daily frequencies
2) The problem seems to only hold when subtracting 1 period (1 month or 1 quarter), i.e. the code @DateAdd(@DateVal(@Date), -2, "MM") returns a number


Regards
Martin

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

Re: Bug in @DateAdd-function or date format

Postby EViews Gareth » Thu Jul 31, 2014 8:02 am

Not a bug.

June 31st doesn't exist.

MOG
Posts: 21
Joined: Sun Aug 25, 2013 6:42 am

Re: Bug in @DateAdd-function or date format

Postby MOG » Thu Jul 31, 2014 8:30 am

Cheers!

Regards
Martin


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 2 guests