Jump to content


This topic is now archived and is closed to further replies.


Formatting a TimeStamp

Recommended Posts

[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

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.