![]() |
Date - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31) +--- Thread: Date (/showthread.php?tid=77205) |
Date - swangchu - 08-01-2020 How can I extract day and month from date in Codeigniter 4? RE: Date - InsiteFX - 08-02-2020 Quick example: PHP Code: $timestamp = time(); Or you can use the PHP DateTime object. RE: Date - MGatner - 08-06-2020 If you have a CI4 Time object you can simple use the getters (https://codeigniter4.github.io/CodeIgniter4/libraries/time.html#getters): $time->day $time->month |