Jump to content


Photo

timestamp to date


  • Please log in to reply
4 replies to this topic

#1 birdie

birdie
  • Members
  • PipPipPip
  • Advanced Member
  • 65 posts
  • LocationBirmingham UK

Posted 18 April 2006 - 02:00 AM

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!

#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 18 April 2006 - 02:02 AM

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]
Legend has it that reading the manual never killed anyone.
My site

#3 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 18 April 2006 - 02:02 AM

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.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#4 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 18 April 2006 - 03:28 AM

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.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#5 birdie

birdie
  • Members
  • PipPipPip
  • Advanced Member
  • 65 posts
  • LocationBirmingham UK

Posted 18 April 2006 - 02:14 PM

[!--quoteo(post=365865:date=Apr 18 2006, 04:28 AM:name=businessman332211)--][div class=\'quotetop\']QUOTE(businessman332211 @ Apr 18 2006, 04:28 AM) View Post[/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!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users