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.
Printable View
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.
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.
nope (at least not pre Whistler).
td.
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! :)