When a user enters a date in text box,i've to check ,whether it is in yyyy-mm-dd format.
Note Even month,date,for eg:2012-02-32 is not valid because,date can be only till 31 and same for month,he can n't enter month as 13.
If it is in wrong format,i should echo.
Thanks in advance!