SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: '0000-00-00 00:00:00' for column code example Example: '0000-00-00' for column ' SET SQL_MODE='ALLOW_INVALID_DATES';