Page 1 of 1
date format
Posted: Wed Mar 11, 2009 4:33 am
by shafiq2626
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
Re: date format
Posted: Wed Mar 11, 2009 4:56 am
by zeonbay
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
use this :-
Code: Select all
$date = date('Y-m-d H:i:s', 1234449468);
echo $date;
http://in2.php.net/date
Re: date format
Posted: Wed Mar 11, 2009 5:08 am
by shafiq2626
thanks a lot this is working
zeonbay wrote: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
use this :-
Code: Select all
$date = date('Y-m-d H:i:s', 1234449468);
echo $date;
http://in2.php.net/date