4
Good afternoon Guys, I need to make a select that translates the day of the week into Portuguese, it is already working, but in English. How can I change.
Select *,id, data, mes,date_format(`data`,'%d/%m/%Y') as `data_formatada` FROM (SELECT DAYNAME(data) AS dia, year(data) AS ano,
(CASE month(data)
when 1 then 'Janeiro'
when 2 then 'Fevereiro'
when 3 then 'Março'
when 4 then 'Abril'
when 5 then 'Maio'
when 6 then 'Junho'
when 7 then 'Julho'
when 8 then 'Agosto'
when 9 then 'Setembro'
when 10 then 'Outubro'
when 11 then 'Novembro'
when 12 then 'Dezembro'
END) AS mes,
id,
data,hora,evento,participante FROM agenda WHERE not (data is null)) as agenda
Thank you.
Opa, I’m using mysql
– Eduehi
Related: Convert Date field data to Mysql month
– rray