title: Laravel 5.1 date_format validation allow two formats
body: <p>I use following date validation for incoming POST request.</p>
  
  <pre><code>'trep_txn_date' =&gt; 'date_format:"Y-m-d H:i:s.u"'
  </code></pre>
  
  <p>This will only allow a date of this kind i.e. 2012-01-21 15:59:44.8</p>
  
  <p>I also want to allow date without the TIME e.g. 2012-01-21, which when sent to mysql db will automatically store as 2012-01-21 00:00:00.0</p>
  
  <p>Is there a way I can do this using a Laravel's existing validation rules.
  Is there a way to define multiple formats in date_format rule something like below.</p>
  
  <pre><code>'trep_txn_date' =&gt; 'date_format:"Y-m-d H:i:s.u","Y-m-d"' //btw this didn't work.
  </code></pre>
  
  <p>Thanks,</p>
  
  <p>K</p>