title: Javascript datetime string to Date object
body: <p>I am debugging a small application with some functionality which would only run in Chrome. The problem lies in a datepicker where you choose a date and time and the datepicker concaternates it into a datetime-string.</p>
  
  <p>Anyway the string looks like this: <code>2012-10-20 00:00</code>.</p>
  
  <p>However, the javascript that uses it now just takes the string and initialize an object with it like this: <code>new Date('2012-10-20 00:00');</code></p>
  
  <p>This is resulting in an invalid date in Firefox, IE and probably all browsers but Chrome.
  I need advise in how I best could transform this datestring to a Date object in javascript. I have jQuery enabled.</p>
  
  <p>Thanks for your sage advise and better wisdom.</p>