06-18-2020, 04:14 AM
I am trying to set value for timestamp field in CodeIgniter 4 model. But I couldn't find anything relevant to date fields in the CI documentation. The only thing I see is related to automatic timestamp fields.
In CI 3 I have used it like below.
$this->db->set('last_loggedin', 'CURRENT_TIMESTAMP', FALSE);
In CI 3 I have used it like below.
$this->db->set('last_loggedin', 'CURRENT_TIMESTAMP', FALSE);