Hello all,
Can somebody explain to me how to ADD or SUBTRACT a single day from the SYSTEMTIME structure. I convert the SYSTEMTIME structure to a 64bit number with SystemTimeToFileTime and I tried adding what I thought was a day but nothing changed when I put my result back through FileTimeToSystemTime.
1000 miliseconds in a second
60 seconds in a minute
60 minutes in an hour
24 hours in a day
so...
1Day = (1000 * 60 * 60 * 24)
All I want is to add or subtract a day from the SYSTEMTIME structure and have the Month and Year adjust accordingly, could somebody help here I'm about ready to toss my computer out the fourth floor here!
Thanks
------------------
Cheers!
Can somebody explain to me how to ADD or SUBTRACT a single day from the SYSTEMTIME structure. I convert the SYSTEMTIME structure to a 64bit number with SystemTimeToFileTime and I tried adding what I thought was a day but nothing changed when I put my result back through FileTimeToSystemTime.
1000 miliseconds in a second
60 seconds in a minute
60 minutes in an hour
24 hours in a day
so...
1Day = (1000 * 60 * 60 * 24)
All I want is to add or subtract a day from the SYSTEMTIME structure and have the Month and Year adjust accordingly, could somebody help here I'm about ready to toss my computer out the fourth floor here!

Thanks
------------------
Cheers!
Comment