|
-
Jul 30th, 2001, 07:14 AM
#1
Thread Starter
Hyperactive Member
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.
-
Jul 30th, 2001, 08:23 AM
#2
Frenzied Member
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."
-
Jul 30th, 2001, 10:36 AM
#3
Thread Starter
Hyperactive Member
nope (at least not pre Whistler).
td.
-
Jul 30th, 2001, 01:13 PM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|