Page 1 of 1

Bug in @DateAdd-function or date format

Posted: Thu Jul 31, 2014 2:14 am
by MOG
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

Re: Bug in @DateAdd-function or date format

Posted: Thu Jul 31, 2014 8:02 am
by EViews Gareth
Not a bug.

June 31st doesn't exist.

Re: Bug in @DateAdd-function or date format

Posted: Thu Jul 31, 2014 8:30 am
by MOG
Cheers!

Regards
Martin