Return to Snippet

Revision: 12910
at April 1, 2009 08:05 by bpa


Initial Code
$date_time = '2008-07-15 16:09:21'

$newdate = preg_replace('/^(\d{4,4})\-(\d{2,2})\-(\d{2,2})/', '$3.$2.$1', $date_time);

echo $newdate; //15.07.2008 16:09:21

Initial URL

                                

Initial Description
Wandelt eine Datetime in eine deutsches Datum um

Initial Title
Datetime 2 German Date

Initial Tags
php

Initial Language
PHP