Page 1 of 1

@datediff between quarter end

Posted: Wed Apr 10, 2019 3:03 pm
by bcchen
Hi Eviews fellows,

I was trying to calculate quarter difference between some quarter end dates and found something weird:


=@datediff(@dateval("2011-09-30"),@datefloor(@dateval("2011-06-30"),"Q"),"Q")
the result is 1;

=@datediff(@dateval("2011-06-30"),@datefloor(@dateval("2011-03-31"),"Q"),"Q")
the result is 0.

I thought the second one should return 1 as well?

Please help.
BC

Re: @datediff between quarter end

Posted: Wed Apr 10, 2019 3:03 pm
by bcchen
I am using EVIEWS 9.5

Re: @datediff between quarter end

Posted: Wed Apr 10, 2019 3:55 pm
by EViews Matt
Hello,

Both of those expressions evaluate to 1 for me. Is your copy of EViews 9.5 up to date? Nov 1, 2018 is the most recent patch.