Calculating Forecast Length via Dates

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

BCNAV
Posts: 40
Joined: Tue Oct 31, 2017 9:06 am

Calculating Forecast Length via Dates

Postby BCNAV » Fri Nov 10, 2017 8:47 am

Hi again

I am using:

%history_end_date="2017.09"
%forecast_start_date="2017.10"
%forecast_end_date="2019.12"

To start and label workfiles. I need to be able to get the number of months between %forecast_start_date and %forecast_end_date

I don't think datediff can work due to them being characters. Is there a way around this? Again I need number of months between them, in this case it is 27

thanks

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

Re: Calculating Forecast Length via Dates

Postby EViews Gareth » Fri Nov 10, 2017 9:04 am

A combination of @datediff and @dateval
Follow us on Twitter @IHSEViews


Return to “Programming”

Who is online

Users browsing this forum: GFXFTS and 21 guests