Results 1 to 4 of 4

Thread: DateDiff ?

  1. #1

    Thread Starter
    Hyperactive Member tumblingdown's Avatar
    Join Date
    Mar 2000
    Posts
    362

    DateDiff ?

    Whats the best way to do DateDiff type functions in c++.

    I need to be able to take a date, and add or subtract days, taking into account the different number of days in a given month.


    ?


    td.

  2. #2
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    I expect there's a Windows API type thing that does it, but since I don't know what the API is and I haven't done this myself in C++, I'll keep quiet now.
    Harry.

    "From one thing, know ten thousand things."

  3. #3

    Thread Starter
    Hyperactive Member tumblingdown's Avatar
    Join Date
    Mar 2000
    Posts
    362
    nope (at least not pre Whistler).



    td.

  4. #4
    Aragorn
    Guest
    I can't help you much. but maybe you find this interesting:
    http://www.planetsourcecode.com/xq/A...s/ShowCode.htm

    It only adds days, not subtracts, but you may modify it to do so.
    good luck!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width