What is the correct regular expression to use to validate a date like. 2009-10-22 or 2009-01-01 etc. Platform PHP
^\d{4}-\d{2}-\d{2}$
but no regular expression can prevent someone to enter "9867-39-56"