Jump to content

Validating Date/Time


ShaolinF

Recommended Posts

You can use checkdate to test if you split it up first. I know theres a regex somewhere in the Regex forum for calculating valid Military time so if it's 24 hour you could use that. Theres also a rather spectacular Regex for date, but at last view I don't think we had leap years working perfectly :)

Link to comment
https://forums.phpfreaks.com/topic/182546-validating-datetime/#findComment-963497
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.