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!
Printable View
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!
use a combination of date and strtotime. mktime() would also be an option.
Hi!
Any sample would be highly appericiated.
Thanks!
Hi!
Don't be lazy, check the manual!
Thanks!
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));
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!
I even posted a link to help him. Now arn't I kind :DQuote:
Originally posted by ober0330
Hi!
Don't be lazy, check the manual!
Thanks!
Who's the kind one ? visualAd visualAd :thumb:
Did you check the Date and Time Functions section?Quote:
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!