$format = "d M Y"; //or something else that date() accepts as a format date_format(date_create($time),$format);