CodeIgniter Forums
Nice date Time display - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Nice date Time display (/thread-13202.html)



Nice date Time display - El Forum - 11-14-2008

[eluser]palZ[/eluser]
Can any one tell me, is there any library/helper available for displaying nice date & time.
for Ex:
Code:
Posted: 3 minutes ago
Posted: 2days ago



Nice date Time display - El Forum - 11-14-2008

[eluser]Murodese[/eluser]
http://au.php.net/date

If you want to use mysql format tags, use mdate():

http://ellislab.com/codeigniter/user-guide/helpers/date_helper.html

e; and combine it with timespan() to get the amount of time passed.


Nice date Time display - El Forum - 11-14-2008

[eluser]palZ[/eluser]
Hello Murodese,

thanks for your quick response, i will check it!