CodeIgniter Forums

Full Version: Add now() function to DB Query Builder
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
It would be nice, to have straight built in now() function in query builder for Date / Date-Time Smile
Without making it other way, or using Date library, just Query Builder.  Blush Blush Blush
Why not use now() directly like that?

Code:
$this->db->set('mytime', 'now()', false);