Jump to content

Formatting a TimeStamp


adamjnz

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
Link to comment
https://forums.phpfreaks.com/topic/7450-formatting-a-timestamp/
Share on other sites

Archived

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

×
×
  • Create New...

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.