fujale Posted October 22, 2014 Share Posted October 22, 2014 Can you please help how to validate the date of birth in code igniter including leap years Quote Link to comment https://forums.phpfreaks.com/topic/291975-date-of-birth-validation-in-codeigniter/ Share on other sites More sharing options...
Barand Posted October 22, 2014 Share Posted October 22, 2014 checkdate() $doby = '2014'; $dobm = '02'; $dobd = '29'; if (checkdate($dobm,$dobd,$doby)) { echo "Date OK"; } else { echo "Date error"; } Quote Link to comment https://forums.phpfreaks.com/topic/291975-date-of-birth-validation-in-codeigniter/#findComment-1494361 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.