I'm building a form that contains a text field for a date. This date needs to be entered in mysql format "yyyy-mm-dd". I'm looking for a function that will validate the text box date and return true if the date is valid and false if it isn't. Surprisingly after about 15 minutes of googling I can't seem to find anything that quite fits the bill.
Please could someone tell me how to write this function.
thanks very much