I am saving in my Database the date of the record in a field called Date , the input
is of type date
. It turns out that the data is being saved as follows 2017-11-28
, that's the least of it, the problem arises in which I must and want to show that data on my website as follows:
Desired result:
Viernes, 24 / Noviembre / 2017
The question is, how can I convert that date to the format I need?
My code:
//Fecha
$fecha = '2017-11-25';
//Imprimo.
echo $fecha;
Greetings.