title: Validation rules for date and time in CodeIgniter
body: <p>I am using PHP CodeIgniter. I have kept validation in a function. I do not know the validation rule for date and time calendar in CodeIgniter. Can anyone give me an idea?</p>
  
  <p>My code is :</p>
  
  <pre><code>$this-&gt;ref_valid_rules = array( 
                          array('field' =&gt; 'meeting_heading',
                                'label' =&gt; 'meeting heading',
                                'rules' =&gt; 'trim|required'), 
                          array('field' =&gt; 'meeting_agenda',
                                'label' =&gt; 'meeting agenda',
                                'rules' =&gt; 'trim|required'),
                          array('field' =&gt; 'venue',
                                'label' =&gt; 'venue',
                                'rules' =&gt; 'trim|required'),
                          array('field' =&gt; 'date',
                                'label' =&gt; 'date time',
                                'rules' =&gt; 'required') );
  </code></pre>