VC++ Date/Time calculation
-
I am using the VC++ date/time picker control. I want to select a date and then calculate the total seconds from 01-Jan-1980 until the selected date. Also I want to store this as an unsigned long int. Do you know of a simply way to do this?
Store each of the dates in a
COleDateTime
object. Assign the difference to aCOleDateTimeSpan
object.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
Store each of the dates in a
COleDateTime
object. Assign the difference to aCOleDateTimeSpan
object.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
I have very little VC++ experience. Could you give me more details on how to do this? thank you
Yes, but I'd rather point you here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/\_mfc\_cdatetimectrl.3a3a.gettime.asp http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/\_mfc\_coledatetime.asp http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/\_mfc\_coledatetimespan.asp
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)