date - PHP datetime formatting in echo -


php noob. having trouble getting php date format execute here:

echo "<div class='column'>";  echo $row['date'];  echo "</div>";  

i tried below no luck.

echo ".date('d/m/y', strtotime($row['date']))"; 

it should be

echo date('d/m/y', strtotime($row['date'])); 

the problem is

echo ".date('d/m/y', strtotime($row['date']))";       ^............  $date = '2014-01-31'; echo ".date('d/m/y', strtotime($date))"; 

the output .date('d/m/y', strtotime(2014-01-31))

it treat string except variable inside "".


Comments

Popular posts from this blog

What can cause "Required Package 'IndyCore' not found" when compiling a Delphi 2010 project? -

c# - MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(3243,9): error MSB4094 -