Jump to content

Archived

This topic is now archived and is closed to further replies.

birdie

timestamp to date

Recommended Posts

hi, can anyone please give me a script which transfers a timestamp into a date format like "4th may 2005". if not, please give me a method on how to do this. thanks, anything is greatly appreciated!

Share this post


Link to post
Share on other sites
Everything you need to know, you'll find in the manual section on [a href=\"http://ca.php.net/manual/en/function.date.php\" target=\"_blank\"]the date() function.[/a]

Share this post


Link to post
Share on other sites
I know in javascript you simply use there preset date functions, I think php has those 2. at www.php.net, and I am reading that book on www.hudzilla.com it will help alot, as you can learn all of php off that, or go to the functions section and look around through the ones about dates.

Share this post


Link to post
Share on other sites
also this might help I found it.
[a href=\"http://www.hudzilla.org/phpbook/read.php/4_0_0\" target=\"_blank\"]http://www.hudzilla.org/phpbook/read.php/4_0_0[/a]
specifically what you would need are chapters
4.5. Working with Date and Time

4.5.1. Reading the current time: time() and microtime()
4.5.2. Converting from a string: strtotime()
4.5.3. Converting to a string: date()
4.5.4. Converting from components: mktime()


hope that helps.

Share this post


Link to post
Share on other sites
[!--quoteo(post=365865:date=Apr 18 2006, 04:28 AM:name=businessman332211)--][div class=\'quotetop\']QUOTE(businessman332211 @ Apr 18 2006, 04:28 AM) [snapback]365865[/snapback][/div][div class=\'quotemain\'][!--quotec--]
also this might help I found it.
[a href=\"http://www.hudzilla.org/phpbook/read.php/4_0_0\" target=\"_blank\"]http://www.hudzilla.org/phpbook/read.php/4_0_0[/a]
specifically what you would need are chapters
4.5. Working with Date and Time

4.5.1. Reading the current time: time() and microtime()
4.5.2. Converting from a string: strtotime()
4.5.3. Converting to a string: date()
4.5.4. Converting from components: mktime()
hope that helps.
[/quote]
thanks that helps!

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.