I\'m trying with:
setlocale(LC_ALL,\"es_ES\"); $string = \"24/11/2014\"; $date = DateTime::createFromFormat(\"d/m/Y\", $string); echo $date->format(\"
From the DateTime format page:
This method does not use locales. All output is in English.
If you need locales look into strftime Example:
setlocale(LC_ALL,"es_ES"); $string = "24/11/2014"; $date = DateTime::createFromFormat("d/m/Y", $string); echo strftime("%A",$date->getTimestamp());