I'm receiving from a JS script an string that should be formatted according to the datetime format so like: 2013-07-29 00:00:00.
Of course I need to sanitize that input before putting it in a raw MySQL query. What will be the best way to sanitize that format on php?