I'd like to subtract two dates and get a Float/Double instead of an Integer Long as a return value. Is there a date function for this?
Right now I'm using:
But DateDiff returns a Long Integer so it's dropping off the fraction which I want to keep.
Thanks in advance.
Right now I'm using:
VB.NET:
GetMaturityDate = DateDiff(DateInterval.Year, StartDate, EndDate)
But DateDiff returns a Long Integer so it's dropping off the fraction which I want to keep.
Thanks in advance.