|
Author |
Message |
rippleffect
Junior WebHelper
Joined: 13 Nov 2003
Posts: 10
|
Posted:
Thu Nov 13, 2003 1:55 am (20 years, 5 months ago) |
|
I was so happy when I found Daniel's nifty tool to convert this into readable format. I was wondering if anyone know how to convert it so that I can use this on my site. Because when I query last_post date from the database, it returns whole buncha numbers.
any help on this matter will help me out so much! I tried looking into the date() and mktime() but I have no idea how to use this correctly. any sample of it would be great! |
|
|
|
|
adam
Forum Moderator & Developer
Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Thu Nov 13, 2003 8:21 am (20 years, 5 months ago) |
|
what kind of date do you want it to be displayed as? i.e. Thursday November 13, or 13/11/2003, etc.
I can give ya the code |
________________________________ It's turtles all the way down... |
|
|
|
rippleffect
Junior WebHelper
Joined: 13 Nov 2003
Posts: 10
|
Posted:
Thu Nov 13, 2003 4:20 pm (20 years, 5 months ago) |
|
Adam, thx for your help
Thursday November 13 would suit me perfect.
Thank you so much! |
|
|
|
|
rippleffect
Junior WebHelper
Joined: 13 Nov 2003
Posts: 10
|
Posted:
Thu Nov 13, 2003 5:18 pm (20 years, 5 months ago) |
|
Actually, someone else have helped me to solved this.
But thx for the help |
|
|
|
|
adam
Forum Moderator & Developer
Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Thu Nov 13, 2003 5:20 pm (20 years, 5 months ago) |
|
date("l F m",$unixdate); will return what you want - where $unixdate is the date as stored in the database.
if you don't want leading zeros (i.e. 1 instead of 01) just use date("l F j",$unixdate); instead. and incase it's not clear in the font, thats a lower case L, not an upper case i.
edit: ok, too late |
________________________________ It's turtles all the way down... |
|
|
|
rippleffect
Junior WebHelper
Joined: 13 Nov 2003
Posts: 10
|
Posted:
Thu Nov 13, 2003 8:38 pm (20 years, 5 months ago) |
|
Thx! nice to know that info too |
|
|
|
|
|
|
You cannot post new topics in this forum. You cannot reply to topics in this forum. You cannot edit your posts in this forum. You cannot delete your posts in this forum. You cannot vote in polls in this forum.
|
Page generation time: 0.159587 seconds :: 19 queries executed :: All Times are GMT
Powered by phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme
| |