Excel 97
Two textboxes on a form
User enters a date into txb1 (format = mm/dd/yy)
User enters a time into txb2 (format = hhmm)
Then I use:
dteStart = CDate(txb1 & " " & Left(txb2, 2) & ":" & Right(txb2, 2))
where dteStart is of type Date
I use dteStart in the header of a worksheet. It will display something along the lines of:
02/05/2004 11:59:00 PM
The problem occurrs when the user enters 0000 for txb2 (this is midnight). In that case the header shows:
02/05/2004
Why does it not display the 00:00?
Two textboxes on a form
User enters a date into txb1 (format = mm/dd/yy)
User enters a time into txb2 (format = hhmm)
Then I use:
dteStart = CDate(txb1 & " " & Left(txb2, 2) & ":" & Right(txb2, 2))
where dteStart is of type Date
I use dteStart in the header of a worksheet. It will display something along the lines of:
02/05/2004 11:59:00 PM
The problem occurrs when the user enters 0000 for txb2 (this is midnight). In that case the header shows:
02/05/2004
Why does it not display the 00:00?