Avatar of earwig75
earwig75

asked on 

How can I validate date and time in one field?

I have a text box with a date/time picker, but the box is not read only. I need to use jquery or javascript to validate the date/time entered meets the following format: 09/19/2016 15:31

That is.. I need to validate input in the text box as mm/dd/yyyy [space] 24:hour time clock. Does anyone have experience with how I can do this? If so, do you have a code example? I'm thinking maybe a regular expression? Thank you.
JavaScriptjQuery

Avatar of undefined
Last Comment
Kim Walker

8/22/2022 - Mon