J
Josh
I have a time field textbox. I need to get the hour to use in a
variable. I can't use 24 hour time.
What I need, is if the time is 9:00am, then put 9 in the variable. If
the time is 9:00pm, then put 21 in the variable.
I can just use
IF txtTimeField = 9:00am, then hourVar=9
else if txtTimeField=10:00am, then hourVar=10
and so on, but it seems like there should be a better way of doing
this other than using an IF with 24 IFs.........
I know, 24 hour format would work, but this will be used on other
peoples computers, who will not have 24 hour format set.
Thanks
variable. I can't use 24 hour time.
What I need, is if the time is 9:00am, then put 9 in the variable. If
the time is 9:00pm, then put 21 in the variable.
I can just use
IF txtTimeField = 9:00am, then hourVar=9
else if txtTimeField=10:00am, then hourVar=10
and so on, but it seems like there should be a better way of doing
this other than using an IF with 24 IFs.........
I know, 24 hour format would work, but this will be used on other
peoples computers, who will not have 24 hour format set.
Thanks