|
-
April 2nd, 1999, 04:11 PM
#1
Incrementing a date value
I am trying to get the system time, increment it by x number of days, and use incremented date to set a field in the database. Here is what I have so far:
SYSTEMTIME st; GetSystemTime(&st);
FILETIME ft;
SystemTimeToFileTime(&st,&ft);
LARGE_INTEGER li = {ft.dwLowDateTime,ft.dwHighDateTime};
<** WHAT DO I DO WITH THE LARGE INTEGER TO ADD
X DAYS???***>
ft.dwHighDateTime = li;
FileTimeToSystemTime(&ft,&st);
I have tried shifting and adding, but don't know anything about 64-bit arithmetic or operations.
Please Help!
Therese
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
|