title: Javascript Date format "dd-MMM-yyyy" not working in IE
body: <p>I am having the date format <code>dd-MMM-yyyy</code> while getting data from server side.
  I am doing some validation with it like </p>
  
  <pre><code> if (new Date("02-MAY-2018").toDateString() == new Date(this.dob).toDateString()) {
     alert("No error");
   }
   else {
     alert("error");
   }   
  </code></pre>
  
  <p>Here <code>new Date("02-MAY-2018").toDateString()</code> this conversion is working on chrome, but not in IE</p>