Thanks guys 🙂
Dagon, that's the one I got too, but it confused me even further
NogDog, both of those look promising, especially the one with the unix time for the larger one...
The code you provided, is that ready to validate a yyyy-mm-dd?
if(!preg_match('/\d{4}-\d\d-\d\d( \d\d:\d\d:\d\d)?/', $_POST['date'])
{
// Our error stuff here
}
The reason I ask is that it just has d's?
Thanks!