Jump to content

date format help


Recommended Posts

Hi everyone, Im having trouble trying to format my date as dd/mm/yyyy. Its being stored in the db as yyyy-mm-dd and it echos correctly using

<?php echo KT_FormatForList($row_rsworksorders1['intraartapproval'], 20); ?>

 

 

however when I try and reformat the output using

<?php print date('d/m/Y', $row_rsworksorders1['intraartapproval']); ?>

the date shows as 01/01/1969

 

Anybody see whats wrong?

Link to comment
https://forums.phpfreaks.com/topic/202238-date-format-help/
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.