Format date before save or show |
Take the date and convert it to a Timestamp then MySQLi will be able to use it.
You will also need to convert it back for the input if you use setVar. You can also use the object date format. Has better examples then date. PHP.net - DateTime::format What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Messages In This Thread |
Format date before save or show - by pippuccio76 - 01-28-2021, 11:15 AM
RE: Format date before save or show - by InsiteFX - 01-28-2021, 12:21 PM
RE: Format date before save or show - by pippuccio76 - 01-28-2021, 12:56 PM
RE: Format date before save or show - by InsiteFX - 01-28-2021, 02:55 PM
RE: Format date before save or show - by demyr - 01-28-2021, 11:01 PM
RE: Format date before save or show - by Codinglander - 01-30-2021, 06:56 AM
|