You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to capture the hours from date attribute

Accepted answer
51
Views
7
Comments

Summary:

I am looking to get the current date and then check if it is a time later than 8 pm. But using the getdate(true) on my system I get back the 12 Hour format. I have been able to get the 24 hour format by changing the date to a string with datetostr. What do I use now to identify the hour?

Content (please ensure you mask any confidential information):


Version (include the version you are using, if applicable):


Code Snippet (add any code snippets that support your topic, if applicable):

My initial attempt to do this using getdate(true) looked like this. But I never will get any hour larger than 12 in the 12 hour format.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!