title: How to check if date is in correct format i.e. yyyy-mmm-dd?
body: <p>I'm receiving data from a service call and want to make sure that the string is in correct date format like:</p>
  
  <pre><code>2015-Nov-19
  </code></pre>
  
  <p>I have tried to use parse function with the format <code>yyyy-mmm-dd</code>, but it is also allowing dates like <code>2015-11-19</code>. What do I do?</p>