date format

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
shafiq2626
Forum Commoner
Posts: 88
Joined: Wed Mar 04, 2009 1:54 am
Location: Lahore
Contact:

date format

Post 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
zeonbay
Forum Newbie
Posts: 3
Joined: Wed Mar 11, 2009 3:28 am

Re: date format

Post 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
shafiq2626
Forum Commoner
Posts: 88
Joined: Wed Mar 04, 2009 1:54 am
Location: Lahore
Contact:

Re: date format

Post 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
Post Reply