Hello, I am currently working in a project based on dates . Users will enter a date and PHP should check the date format entered is YYYY-MM-DD otherwise it should show a error !! For example when 24-4-2010 is entered, php should show an error. Is there any function for it ? Thanks !