|
-
Nov 13th, 2000, 11:39 AM
#1
Thread Starter
Lively Member
Haved use the GetFileTime API function to get the date and time of the file. Do you know how to calculate the date, and also the time if I the program is given with two dates, and two time, i.e. subtraction or addition of date and time.
Thanks.
-
Nov 13th, 2000, 02:24 PM
#2
Take a look at the DateAdd function located in your MSDN Libary (or help file).
DateAdd(interval, number, date)
-
Nov 14th, 2000, 12:07 AM
#3
Thread Starter
Lively Member
I tried to use the DateAdd, DateDiff function. But I was not able to put in the time, instead only date format is used in the function.
Thinking of disassemble the time and re-assemble it back after the calculation, is it a good move ?
-
Nov 14th, 2000, 03:02 PM
#4
Addicted Member
Not a bad idea, you could separate it with format$. You would need to check if the hours had become bigger than 12 or 24 and whether the minutes had become bigger than 60.
Matthew
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
|