Take the following statement:
INSERT INTO timesheet SET `id`='', `resourceID`='b499beaa-3eb0-fc9e-8054-42ee5f194345', `taskID`='e2962df5-7517-eb26-fa1e-437e48540541',
`billingDescription`='date won\'t work', `portalDescription`='',
`consultantNotes`='', `startTime`='14:02:00', `endTime`='17:02:24',
`date`='2005-19-12', `quantity`='3', `billRate`='100', `costRate`='20',
`createdBy`='b499beaa-3eb0-fc9e-8054-42ee5f194345',
`updatedBy`='b499beaa-3eb0-fc9e-8054-42ee5f194345', `updatedOn`='2005-12-19 17:02:39' ON DUPLICATE KEY UPDATE `id`='',
`resourceID`='b499beaa-3eb0-fc9e-8054-42ee5f194345', `taskID`='e2962df5-7517-eb26-fa1e-437e48540541', `billingDescription`='date won\'t work', `portalDescription`='', `consultantNotes`='', `startTime`='14:02:00',
`endTime`='17:02:24', `date`='2005-19-12', `quantity`='3', `billRate`='100',
`costRate`='20', `createdBy`='b499beaa-3eb0-fc9e-8054-42ee5f194345',
`updatedBy`='b499beaa-3eb0-fc9e-8054-42ee5f194345', `updatedOn`='2005-12-19 17:02:39'
No matter what the date is set to 0000-00-00.
When performing the statement from the command line the following error is thrown: ERROR 1292 (22007): Incorrect date value: '2005-19-12' for column 'date' at row 1
I really can't see what's wrong with my date value. Should I try to insert 20051912? I'm pretty sure those dashes are legal though.