Bug in @DateAdd-function or date format
Posted: 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
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