Over a million developers have joined DZone.

Simple UK Date Format Function

DZone's Guide to

Simple UK Date Format Function

· ·
Free Resource
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));


Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}