title: Insert Current DateTime in Codeigniter 3.0.6
body: <p>I'm trying to store user signup date and time using codeigniter 3.0.6 and using</p>
  
  <pre><code>NOW()
  </code></pre>
  
  <p>as</p>
  
  <pre><code> $this-&gt;db-&gt;set('user_nicename', $nameVar);
     $this-&gt;db-&gt;set('user_login', $emailVar);
     $this-&gt;db-&gt;set('user_pass', $passwordVar);
     $this-&gt;db-&gt;set('user_registered', 'NOW()');
     $this-&gt;db-&gt;insert('doc_users');
  </code></pre>
  
  <p>but it is not storing date time in database</p>
  
  <p><a href="http://i.stack.imgur.com/Z9OAg.png" rel="nofollow">see database image</a></p>