|
-
Sep 29th, 2004, 07:08 AM
#1
Thread Starter
Hyperactive Member
How to convert date ?
Hello!
How to convert unix time stamp data to human read able date ?
For eg. I want to get 01-01-2004 from 1234567890. This is just an example how it looks.
Thanks!
Tapan Bhanot,
CEO, Avis Software.
Website: www.avissoftware.com
-
Sep 29th, 2004, 07:20 AM
#2
Frenzied Member
use a combination of date and strtotime. mktime() would also be an option.
-
Sep 29th, 2004, 07:24 AM
#3
Thread Starter
Hyperactive Member
Hi!
Any sample would be highly appericiated.
Thanks!
Tapan Bhanot,
CEO, Avis Software.
Website: www.avissoftware.com
-
Sep 29th, 2004, 07:29 AM
#4
Frenzied Member
Hi!
Don't be lazy, check the manual!
Thanks!
-
Sep 29th, 2004, 07:31 AM
#5
Look at the PHP date() function. You supply it with a format string and UNIX timestamp.
The following would print the dat in this format: "29/09/2004 13:28"
PHP Code:
echo(date('m/d/Y H:i', $timestamp));
-
Sep 29th, 2004, 07:31 AM
#6
Thread Starter
Hyperactive Member
Lol i am not lazy..i check the manual and atleast i did not found anything. my php editor comes with php manual...and i am unable to find anything that is why i posted here!
Tapan Bhanot,
CEO, Avis Software.
Website: www.avissoftware.com
-
Sep 29th, 2004, 07:32 AM
#7
Originally posted by ober0330
Hi!
Don't be lazy, check the manual!
Thanks!
I even posted a link to help him. Now arn't I kind
-
Sep 29th, 2004, 07:36 AM
#8
Thread Starter
Hyperactive Member
Who's the kind one ? visualAd visualAd
Tapan Bhanot,
CEO, Avis Software.
Website: www.avissoftware.com
-
Sep 29th, 2004, 11:50 AM
#9
Stuck in the 80s
Originally posted by AvisSoft
Lol i am not lazy..i check the manual and atleast i did not found anything. my php editor comes with php manual...and i am unable to find anything that is why i posted here!
Did you check the Date and Time Functions section?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|