Hi I seem to be having trouble getting the datetime method to work as expected? I may be doing something wrong?
// Passes OK $dateTime = DateTime::createFromFormat('d/m/Y', '12/12/2012' ); var_dump($dateTime); // should fail but returns - 2016-09-25 $dateTime = DateTime::createFromFormat('d/m/Y', '56/56/2012' ); var_dump($dateTime); // correctly returns False $dateTime = DateTime::createFromFormat('d/m/Y', '56/56/fail' ); var_dump($dateTime); // should fail but returns 2019-08-29 09:58:10 $dateTime = DateTime::createFromFormat('m/d/Y', '90/90/2012' ); var_dump($dateTime); 