title: How to validate if a string is a valid date in js
body: <p>I have string field which is used to get different values. Some of the values received are dates. Now I need to check if value received is date or not? The date received can be in different formats again.</p>
  
  <p>I tried <code>Date.parse()</code>, it works if format is <code>dd-mm-yyyy hh:mm</code>, but I have some dates received in like (<code>26/05/2015 06:20:57 +00:00</code>).</p>
  
  <p>How do I compare if string is valid date or not?</p>