Announcement

Collapse
No announcement yet.

DATEDIF functions ??

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • DATEDIF functions ??

    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

    ------------------

  • #2
    There are heaps of date related math code in these forums... try a search for "julian" and you should find some of them.

    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>
    Lance
    mailto:[email protected]

    Comment

    Working...
    X