title: CodeIgniter: Validate datetime field
body: <p>I tried This code, but the error is not display.</p>
  
  <pre><code>$this-&gt;form_validation
       -&gt;set_rules('fromdatetime',
                   'fromdatetime',
                   '|required|valid_date[m/d/y,/]');
  </code></pre>
  
  <p>How can I validate the <strong>datetime</strong> format using <strong>codeigniter</strong> set rules.</p>