Weird result

xcmav66

Registered User.
Local time
Today, 03:06
Joined
Oct 29, 2008
Messages
29
Every time this code runs, it returns the number 12, regardless of the time (hour, minute, or am/pm). The same code works correctly if I replace the "mm" with "hh" or "AMPM". Can anyone help? Thanks

Code:
MinuteCombo.Value = Format(CDate(StartTimeText.Value), "mm")
 
Try "n" instead of "m", which is Month.
 
haha thank you, i'm an idiot.
 
LOL! You're not an idiot. They could just as easily have used m for minute and n for month.
 

Users who are viewing this thread

Back
Top Bottom