hello
i have value like 1234449468 in my database feild .
how i can display it with php in a date format.
pls help me.
thanks
date format
Moderator: General Moderators
-
shafiq2626
- Forum Commoner
- Posts: 88
- Joined: Wed Mar 04, 2009 1:54 am
- Location: Lahore
- Contact:
Re: date format
use this :-shafiq2626 wrote:hello
i have value like 1234449468 in my database feild .
how i can display it with php in a date format.
pls help me.
thanks
Code: Select all
$date = date('Y-m-d H:i:s', 1234449468);
echo $date;-
shafiq2626
- Forum Commoner
- Posts: 88
- Joined: Wed Mar 04, 2009 1:54 am
- Location: Lahore
- Contact:
Re: date format
thanks a lot this is working
zeonbay wrote:use this :-shafiq2626 wrote:hello
i have value like 1234449468 in my database feild .
how i can display it with php in a date format.
pls help me.
thanks
http://in2.php.net/dateCode: Select all
$date = date('Y-m-d H:i:s', 1234449468); echo $date;