|
Author |
Message |
rippleffect
Junior WebHelper
![Junior WebHelper Junior WebHelper](images/rank_1.gif)
Joined: 13 Nov 2003
Posts: 10
|
Posted:
Thu Nov 13, 2003 1:55 am (20 years, 7 months ago) |
![Reply with Quote Reply with Quote](templates/4WebHelp2/images/lang_english/icon_quote.gif) ![Back to Top Back to Top](templates/4WebHelp2/images/icon_up.gif) |
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! |
|
|
![Offline](templates/4WebHelp2/images/offline.gif) ![View User's Profile View User's Profile](templates/4WebHelp2/images/lang_english/icon_profile.gif) ![Find all posts by rippleffect Find all posts by rippleffect](templates/4WebHelp2/images/lang_english/icon_search.gif) ![Send Personal Message Send Personal Message](templates/4WebHelp2/images/lang_english/icon_pm.gif) |
![](images/spacer.gif) |
adam
Forum Moderator & Developer
![](images/rank_6.gif)
Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Thu Nov 13, 2003 8:21 am (20 years, 7 months ago) |
![Reply with Quote Reply with Quote](templates/4WebHelp2/images/lang_english/icon_quote.gif) ![Back to Top Back to Top](templates/4WebHelp2/images/icon_up.gif) |
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 ![Wink](/forums/images/smilies/icon_wink.gif) |
________________________________ It's turtles all the way down... |
|
![Offline](templates/4WebHelp2/images/offline.gif) ![View User's Profile View User's Profile](templates/4WebHelp2/images/lang_english/icon_profile.gif) ![Find all posts by adam Find all posts by adam](templates/4WebHelp2/images/lang_english/icon_search.gif) ![Send Personal Message Send Personal Message](templates/4WebHelp2/images/lang_english/icon_pm.gif) ![Visit Poster's Website Visit Poster's Website](templates/4WebHelp2/images/lang_english/icon_www.gif) |
![](images/spacer.gif) |
rippleffect
Junior WebHelper
![Junior WebHelper Junior WebHelper](images/rank_1.gif)
Joined: 13 Nov 2003
Posts: 10
|
Posted:
Thu Nov 13, 2003 4:20 pm (20 years, 7 months ago) |
![Reply with Quote Reply with Quote](templates/4WebHelp2/images/lang_english/icon_quote.gif) ![Back to Top Back to Top](templates/4WebHelp2/images/icon_up.gif) |
Adam, thx for your help
Thursday November 13 would suit me perfect.
Thank you so much! |
|
|
![Offline](templates/4WebHelp2/images/offline.gif) ![View User's Profile View User's Profile](templates/4WebHelp2/images/lang_english/icon_profile.gif) ![Find all posts by rippleffect Find all posts by rippleffect](templates/4WebHelp2/images/lang_english/icon_search.gif) ![Send Personal Message Send Personal Message](templates/4WebHelp2/images/lang_english/icon_pm.gif) |
![](images/spacer.gif) |
rippleffect
Junior WebHelper
![Junior WebHelper Junior WebHelper](images/rank_1.gif)
Joined: 13 Nov 2003
Posts: 10
|
Posted:
Thu Nov 13, 2003 5:18 pm (20 years, 7 months ago) |
![Reply with Quote Reply with Quote](templates/4WebHelp2/images/lang_english/icon_quote.gif) ![Back to Top Back to Top](templates/4WebHelp2/images/icon_up.gif) |
Actually, someone else have helped me to solved this.
But thx for the help ![Very Happy](/forums/images/smilies/icon_biggrin.gif) |
|
|
![Offline](templates/4WebHelp2/images/offline.gif) ![View User's Profile View User's Profile](templates/4WebHelp2/images/lang_english/icon_profile.gif) ![Find all posts by rippleffect Find all posts by rippleffect](templates/4WebHelp2/images/lang_english/icon_search.gif) ![Send Personal Message Send Personal Message](templates/4WebHelp2/images/lang_english/icon_pm.gif) |
![](images/spacer.gif) |
adam
Forum Moderator & Developer
![](images/rank_6.gif)
Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Thu Nov 13, 2003 5:20 pm (20 years, 7 months ago) |
![Reply with Quote Reply with Quote](templates/4WebHelp2/images/lang_english/icon_quote.gif) ![Back to Top Back to Top](templates/4WebHelp2/images/icon_up.gif) |
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 ![Smile](/forums/images/smilies/icon_smile.gif) |
________________________________ It's turtles all the way down... |
|
![Offline](templates/4WebHelp2/images/offline.gif) ![View User's Profile View User's Profile](templates/4WebHelp2/images/lang_english/icon_profile.gif) ![Find all posts by adam Find all posts by adam](templates/4WebHelp2/images/lang_english/icon_search.gif) ![Send Personal Message Send Personal Message](templates/4WebHelp2/images/lang_english/icon_pm.gif) ![Visit Poster's Website Visit Poster's Website](templates/4WebHelp2/images/lang_english/icon_www.gif) |
![](images/spacer.gif) |
rippleffect
Junior WebHelper
![Junior WebHelper Junior WebHelper](images/rank_1.gif)
Joined: 13 Nov 2003
Posts: 10
|
Posted:
Thu Nov 13, 2003 8:38 pm (20 years, 7 months ago) |
![Reply with Quote Reply with Quote](templates/4WebHelp2/images/lang_english/icon_quote.gif) ![Back to Top Back to Top](templates/4WebHelp2/images/icon_up.gif) |
Thx! nice to know that info too ![Very Happy](/forums/images/smilies/icon_biggrin.gif) |
|
|
![Offline](templates/4WebHelp2/images/offline.gif) ![View User's Profile View User's Profile](templates/4WebHelp2/images/lang_english/icon_profile.gif) ![Find all posts by rippleffect Find all posts by rippleffect](templates/4WebHelp2/images/lang_english/icon_search.gif) ![Send Personal Message Send Personal Message](templates/4WebHelp2/images/lang_english/icon_pm.gif) |
![](images/spacer.gif) |
|
|
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.111617 seconds :: 17 queries executed :: All Times are GMT
Powered by phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme
| |