Hi friends... I have a table, in which i had stored the date with timestamp... Now i want to retrieve that value into php..plz give me the snippet of code how i can convert this value into proper readable date...
Hi friends... I have a table, in which i had stored the date with timestamp... Now i want to retrieve that value into php..plz give me the snippet of code how i can convert this value into proper readable date...
http://www.dynamicdrive.com/forums/s...ad.php?t=42374
If this doesn't answer your question, you are going to have to give more information.
The format of your timestamp in MYSQL would be a good place to start.
I am assuming it is the standarad MySQL datetime, but who knows.
ok... then give me sughgestions how i can store date and time in MySQL databse that is easy to retrieve in PHP n i can use it for calculating dates for web page.... means in which format i should save the date value in table..?
actually i want to calculate time n dates
suppose sm1 feeds data on 31-10-2009 at 11:00am so "today" with time must b printed on page...and so on..
means on 30-11-09 it must b printed as "on month before" on screen
Bookmarks