- strftime: documentation ( source)
- strtotime: documentation ( source)
- setlocale: documentation ( source)
<?php
setlocale (LC_ALL, 'de_DE');
function formatDateLocale($strTime)
{
$timestamp = strtotime($strTime);
return strftime('%A, %d.%B %Y', $timestamp);
}
echo formatDateLocale('2014-11-11');