![]() |
How to show total days from date - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: How to show total days from date (/showthread.php?tid=91197) |
How to show total days from date - Anharr - 07-01-2024 I have article function to post an article and I want to show total days after this article is posted. For Example : I posted article at 27 June 2024, today is 2 July 2024. In my article will show the information "6 Days Ago" My type data for date posting is : Unix Timestamp (1719853709) it will show 1 July 2024 My question is :
Master, please help. Thank you very much. RE: How to show total days from date - kenjis - 07-01-2024 See https://codeigniter.com/user_guide/libraries/time.html#humanize RE: How to show total days from date - Anharr - 07-02-2024 (07-01-2024, 11:24 PM)kenjis Wrote: See https://codeigniter.com/user_guide/libraries/time.html#humanize Solved, Thank you |