adamjnz Posted April 15, 2006 Share Posted April 15, 2006 [code]<?php echo date("jS M Y",strtotime($row_orders['order_date'])); ?>[/code]Does anyone know why this is returning the date 1st Jan 1970 no matter what is in the Database?I just copied/pasted this code from another website I did a while ago that works fine.Values in the DB are stored using TIMESTAMP in MySQL Link to comment https://forums.phpfreaks.com/topic/7450-formatting-a-timestamp/ Share on other sites More sharing options...
satan165 Posted April 15, 2006 Share Posted April 15, 2006 jan 1st 1970 is the unix date (date unix was invented or something)its related to that Link to comment https://forums.phpfreaks.com/topic/7450-formatting-a-timestamp/#findComment-27134 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.