Has anyone written anyone functions similar to DATEDIF (found in
Lotus and Excel)?
I am looking for a function that given two dates, it will return:
Years between the two dates
Months between two dates
Days between two dates
Days, but ignoring months and years
Months, but ignoring years
Days, ignoring years.
In Lotus for example, it works like this:
@datedif([date1], [date2],"ym") to get the # of months between
two dates, but ignore the years.
Yes, I prefer this be for DOS Powerbasic.
Thank you.
Robert
------------------
Lotus and Excel)?
I am looking for a function that given two dates, it will return:
Years between the two dates
Months between two dates
Days between two dates
Days, but ignoring months and years
Months, but ignoring years
Days, ignoring years.
In Lotus for example, it works like this:
@datedif([date1], [date2],"ym") to get the # of months between
two dates, but ignore the years.
Yes, I prefer this be for DOS Powerbasic.
Thank you.
Robert
------------------
Comment