Jump to content

Need help with date thingy :(


WowAddict

Recommended Posts

It seems you forgot a concatinating operator in your string after 'date("Y-m-d",$now)"'

 $datestring = "";
$now = time();
$datestring .= "<p>Seconds since Jan 1, 1970: $now</p>";
$datestring .= "<p>Today's date: " . date("Y-m-d",$now) . "</p>";

echo $datestring;

 

This will work.

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.