Announcement

Collapse
No announcement yet.

DATEDIF functions ??

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

  • Lance Edmonds
    replied
    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>

    Leave a comment:


  • Robert E. Carneal
    started a topic DATEDIF functions ??

    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

    ------------------
Working...
X