Boolean Island !

Make timestamp more readable

Posted by: ranacse05 on: February 5, 2009

Hello guys , this post for the newbie .Ofter we need to store the current time using mysql NOW() , but when later we want to print that we get 2009-02-05 19:02:49 .

But using a single line we can make that like 05 Feb, 2009 .

<?
	echo date("d M, Y",strtotime($date));
        // Here $date is the timestamp value from the database .
?>

Handy code hun ?

2 Responses to "Make timestamp more readable"

Just dropping by.Btw, you website have great content!

______________________________
Start Getting Paychecks For Easy Work That Fits Your Schedule, No Experience Required.

good tips, that will work for me.

Leave a Reply

My blog worth


My site is worth $3431.
How much is yours worth?

My Twittes

FireFox

Firefox 3

My Facebook

this is Raquibul's profile

View Raquibul Islam's profile on LinkedIn

My fav

 

February 2009
S M T W T F S
« Dec    
1234567
891011121314
15161718192021
22232425262728

Flickr Photos

Moon !

Moon !

Leevio

Leevio

Leevio

Tea !

History

me

More Photos

My Bookmarks

Dynamic Malloc

Blog Stats

  • 47,673 hits