Jump to content

Format Date


unemployment

Recommended Posts

echo date('F jS');

 

this woudn't use the timestamp that OP has retrieved from the database. This would simply print the current date. As TLG said, OP simply needs to reverse his parameters. He has them in the wrong order. Like so:

<span class="goal_head f_right mrm"><?php echo date('F j', $goal['complete_date']); ?></span>

Link to comment
https://forums.phpfreaks.com/topic/237656-format-date/#findComment-1221228
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.