Welcome Guest, Not a member yet? Register   Sign In
Model created_at , updated_at
#2

It goes by this.

[b]$dateFormat[/b]

This value works with $useTimestamps and $useSoftDeletes to ensure that the correct type of date value gets inserted into the database. By default, this creates DATETIME values, but valid options are: datetime, date, or int (a PHP timestamp). Using ‘useSoftDeletes’ or ‘useTimestamps’ with an invalid or missing dateFormat will cause an exception.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
Model created_at , updated_at - by pippuccio76 - 01-07-2021, 11:20 AM
RE: Model created_at , updated_at - by InsiteFX - 01-07-2021, 12:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB