Re: Get Datepicker am pm time to a 24 time in a variable vb6
date/time variables are not 24 hour nor 12 hour formats. They are binary data.
If you want to display that binary data in 24 hour format, use the Format() function. If you are converting some string to a date/time variable, do so with the CDate() function to get the string into that binary data.
Insomnia is just a byproduct of, "It can't be done"
Re: Get Datepicker am pm time to a 24 time in a variable vb6
Also note that 1730 is not a time it is a number and if you place that number in a date var what you will get is not anywhere near 19:30 which is what 7:30 Pm would be("17:30" would be 5:30 PM)
If memory serves you were shown just a few days ago ho to set up a date and in that thread you had did the same thing where you tried to set a date using a numeric value that you thought was a time and was getting 9/25/1904 as your date.