anarchoi Posted June 30, 2009 Share Posted June 30, 2009 i have a variable ($thedate) that contains a UNIX_TIMESTAMP value i would just like to convert it to a normal date (day-month-year) but i can't find how.. could someone help me?? thanks Link to comment https://forums.phpfreaks.com/topic/164209-convert-unix_timestamp-to-a-normal-date/ Share on other sites More sharing options...
JasonLewis Posted June 30, 2009 Share Posted June 30, 2009 Have a look at date. The second parameter is what you need to put in. echo date("jS F Y", $thedate); Will echo like: 30th June 2009 Link to comment https://forums.phpfreaks.com/topic/164209-convert-unix_timestamp-to-a-normal-date/#findComment-866200 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.