I have script that needs to put text in a particular field depending on the time from another field. My script (without all the DateTime methods) is:
If time is >= 08:00:00 and < 09:00:00 then the text is placed in the 8:00 field… and so on.
This works find through the day until I get to 12:00pm. My script says if time >= 12:00:00 and < 13:00:00 then put the text in the 12:00 field. The problem I’m having is in viewing the code in the debugger it is displaying the time as 01:00:00 PM so the statement is considered false. I have the field set to 24 hour clock and it displays as 13:00 on the form but in the doc properties it is shown as 01:00:00 PM.
How can I get my script to display the 24 hour clock? Any ideas are welcomed!
Thanks!