Danny620 Posted December 14, 2010 Share Posted December 14, 2010 check date is in format of Y-m-d Link to comment https://forums.phpfreaks.com/topic/221571-check-date-is-in-format-of-y-m-d/ Share on other sites More sharing options...
Zurev Posted December 14, 2010 Share Posted December 14, 2010 Use preg match with something like: \d{4}[- /.]\d{1,2}[- /.]\d{1,2} Though I'm unsure if the regex is exactly like that, messing around with http://gskinner.com/RegExr/ can help. Link to comment https://forums.phpfreaks.com/topic/221571-check-date-is-in-format-of-y-m-d/#findComment-1146962 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.