title: Inserting datetime into codeigniter
body: <p>What am I doing wrong? trying to insert datetime into my database, all the fields work, just not date time. I have tried for hrs, nothings working.</p>
  
  <p><strong>view</strong></p>
  
  <pre><code>&lt;fieldset&gt;
      &lt;legend&gt;Account Information&lt;/legend&gt;
      &lt;?php
      echo form_open('banks/create_bank');
      echo form_input('bank_name', set_value('bank_name', 'Account Name'));
      echo form_input('interest', set_value('interest', 'Interest'));
      echo form_input('start_amount', set_value('start_amount', 'Starting Balance'));
      echo form_input('length', set_value('length', 'Length'));
      echo form_dropdown("&lt;type ='date' name='start_date'&gt;") ;
  //    echo form_input("&lt;type ='date' name='start_date'&gt;") ;
  //    echo form_checkbox("&lt;type ='date' name='start_date'&gt;") ;
  //    echo form_fieldset("&lt;type ='date' name='start_date'&gt;") ;
  //    echo form_multiselect("&lt;type ='date' name='start_date'&gt;") ;
      echo form_submit('submit', 'Add Bank ')
          ?&gt;
  &lt;/fieldset&gt;
  </code></pre>
  
  <p><strong>Model</strong> </p>
  
  <pre><code>$new_bank_acc_insert_data = array(
              'bank_name' =&gt; $this-&gt;input-&gt;post('bank_name'),
              'interest' =&gt; ($this-&gt;input-&gt;post('interest') / 100),
              'start_amount' =&gt; $this-&gt;input-&gt;post('start_amount'),
              'length' =&gt; $this-&gt;input-&gt;post('length'),
              'start_date' =&gt; $this-&gt;input-&gt;post('start_date'),
              'mem_id' =&gt; $this-&gt;session-&gt;userdata('id')
          );
  </code></pre>