title: Issues with dates in JS across several browsers
body: <p>One of my projects doesn't display some informations on safari while it does on chrome. After a few hours of searching, I found that the problem is related to how Safari implements <code>new Date()</code> &amp; <code>Date.parse</code>.</p>
  
  <p>I have some ideas one how to fix this (thanks to <a href="https://stackoverflow.com/questions/4310953/invalid-date-in-safari">Invalid date in safari</a> &amp; <a href="https://stackoverflow.com/questions/3085937/safari-js-cannot-parse-yyyy-mm-dd-date-format">Safari JS cannot parse YYYY-MM-DD date format?</a>), but I was wondering if there is not a way to overload the Date object to fix this behaviour, while not breaking compatibility.</p>
  
  <p>I'm a beginner in Js, so I don't know if there is a way to make the browser use the built-in functions if they work, or one I supply if not. For what it's worth, the projects is a rails 3.1 app with JQuery &amp; Backbone.js</p>
  
  <p>Thanks for your time!</p>
  
  <p>--- <strong>EDIT</strong></p>
  
  <p>For what it's worth, I used <a href="http://momentjs.com" rel="nofollow noreferrer">Moment.js</a> to fix this.</p>