I have a form using which users can edit their own birthdate, i save the birthdates in the DB in this format 15/24/1989 which is dd/mm/yyyy
how can i check that the form birthday post value is formatted as shown?
also what if i pass 12/00/hello ?
i think i need numerics only and in a range of date 01 > dd < 31 , 01 > mm < 12 , 1920 > yyyy < current_year –
To validate date in this format you should use this function.
It will check the date format, as well as check the actual date itself with the PHP
checkdate()function.etc.