title: compare current date with another dateTime on javascript
body: <p>I have a date returned from database in this format "2013-05-27 14:27:37" and i need to compare this date with the current date.</p>
  
  <p>everytime i tried to parse my date it returned invalid date.</p>