title: How to check string on date in laravel?
body: <p>How to check string on date in laravel?</p>
  
  <p>I want to handle the situation if string doesn't date for example like "it's some not date string".</p>
  
  <p>I try it code, but it doesn't work I have next error:  </p>
  
  <pre><code>InvalidArgumentException  : A two digit month could not be found
  Data missing
  </code></pre>
  
  <p>My code:</p>
  
  <pre><code>    if (Carbon::createFromFormat('m-d-Y', $rowMatrix[4]) !== false) {
  //
  }
  </code></pre>