Over a million developers have joined DZone.

Simple UK Date Format Function

·
Simple function to format a timestam date to a uk date in PHP

Call using 


uk_date({date string});


function uk_date($date) {
//	date_default_timezone_set('Europe/London');      //  Enables daylight savings time PHP5.1 or higher
	return gmdate('d F Y @ G:i', strtotime($date));

}
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}