title: Better regex to validate date time
body: <p>I have this regex <code>(\d{4})-(\d{2})-(\d{2})</code> to detect a valid date, however, it is not perfect as some of the incoming data are 2009-24-09 (YYYY-DD-MM) and some are 2009-09-24 (YYYY-MM-DD).</p>
  
  <p>Is it possible to have a one-line regex to detect whether the second &amp; third portion is greater than 12 to better validate the date?</p>