From csv received the date and time: 29-05-2015 13:56:22 . The date and time is in the $val[0] variable.
When I write this down to the database with the request, they are written as as 0000-00-00 00:00:00 . How do I reformat my date to normal so that everything is recorded correctly. I myself can not change the file.