title: Prevent sql injection on datetime string input
body: <p>I'm receiving from a JS script an string that should be formatted according to the <em>datetime</em> format so like: <strong>2013-07-29 00:00:00</strong>.</p>
  
  <p>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?</p>