That is only going to validate the format, but not the actual date/time. You can parse the value using your regular expression and then use functions like checkdate [php.net] or better yet mktime [php.net] to be certain that the actual date and time are valid.