A little confused

From: Date: Tue, 23 Apr 2013 10:07:30 +0000
Subject: A little confused
Groups: php.general 
Request: Send a blank email to php-general+get-320963@lists.php.net to get a copy of this message
Hi All, $_SESSION['ExpiryDate'] = "2013-04-23"; echo date_format($_SESSION['ExpiryDate'], "D, \t\h\e jS \o\f M Y"); Required Result: Mon, the 23rd of Apr 2013 I get however: PHP Warning: date_format() expects parameter 1 to be DateTime, integer given in I've had a look at the date/time function list, but I cannot seem to find any way to convert $_SESSION['ExpiryDate'] to an DateTime?? -- Chris.

« previous php.general (#320963) next »