One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
// Force UK date format date_default_timezone_set('GMT'); // UTC? Europe/London? $v_test_date = '01/12/2011'; // 1st December 2011 UK format $o_date = new DateTime($v_test_date); dump(array( "Original (UK)" => $v_test_date, "Formatted (Server)" => $o_date->format('d/m/Y') )); exit;
Join the community of 500,000 technology professionals and ask your questions.