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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.