I've go these simple MySQL Query:
$sql->setQuery("SELECT * FROM $db_table");
for ($i = 0; $i < $sql->getRows(); $i++) {
$id = $sql->getValue("id");
$date = $sql->getValue("date");
setlocale(LC_TIME, 'de_DE');
$date = date('l, d.m.Y');
echo $date;
$sql->next();
}
The Output is: Wednesday, 22.12.2016.
Is there a way to get the weekday in german? I'm still using setlocale(LC_TIME, 'de_DE');
?!
setlocale(LC_TIME, 'de_DE', 'deu_deu');