Jump to content

PHP Date Format Help


Recommended Posts

Hi guys I have this date script below which displays like so: 16/09/2011.


Its fine but I now like it to display like this: 16 September 2011


Please I need help in twicking the code to do this Thanks!


//check to see if passing variable is set i.e. if true get day, month, year.
$day = $_GET['day'];
} else{
//Get today's date and put them in date, month, year
$day = date("d");
$month = $_GET['month'];
} else{
$month = date("m");
$year = $_GET['year'];
} else{
$year = date("Y");

echo $day."/".$month."/".$year;


Link to comment
Share on other sites


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.