Jump to content


Photo

Formatting a TimeStamp


  • Please log in to reply
1 reply to this topic

#1 adamjnz

adamjnz
  • Members
  • PipPipPip
  • Advanced Member
  • 30 posts

Posted 15 April 2006 - 12:48 AM

<?php echo date("jS M Y",strtotime($row_orders['order_date'])); ?>
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

#2 satan165

satan165
  • Members
  • Pip
  • Newbie
  • 4 posts

Posted 15 April 2006 - 12:57 AM

jan 1st 1970 is the unix date (date unix was invented or something)
its related to that






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users