Jump to content

[SOLVED] echo "<td > ".date('d/m/Y', $model_date)."</td>" (Not Working)


sayedsohail

Recommended Posts

The second parameter for the date() function has to be a UNIX timestamp which is an integer, you are passing it a string. You need to convert it to a a UNIX timestamp with the function strtotime().

 

<?php
echo "<td > ".date('d/m/Y', strtotime($model_date))."</td>";
?>

 

Ken

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.