// JP opened flex table

Click to See Complete Forum and Search --> : Problem with time assertion


Vola
November 20th, 2001, 02:07 AM
I'm using a datetimepicker (set to time - DTS_TIMEFORMAT) and when I'm trying to retrieve the time, if the hour is less than 19, it fails giving a debug assertion failure. It seems that the hour is asserted to be greater than 19 - which is not logical (It seems to take the assertion for the year : 1900 but cut to two characters -> 19).
Help please !
Thanks.

snoopy779ind
November 20th, 2001, 03:27 AM
are you trying to retrieve the date-time into a ctime object? if you are you will have this problem...ctime will accept dates only from 1970 onwards. why dont you try retrieving the date-time into a coledatetime object?

Bill Heffner
November 20th, 2001, 05:54 PM
A COleDateTime object integrates with the DateTimePicker a lot more easily that a CTime object does, and it has much better functionality.

//JP added flex table