0
I am making a hotel management system using Javascript, Nodejs, Express and MYSQL. I need my date format to be DAY/MONTH/YEAR, this way:
DATE_FORMAT(dt_entrada, '%d/%m/%Y')
DATE_FORMAT(dt_saida, '%d/%m/%Y')
My SQL code is like this
SELECT id_reserva, quarto.num_quarto, nome, DATE_FORMAT(dt_entrada,
'%d/%m/%Y'), DATE_FORMAT(dt_saida, '%d/%m/%Y') from reserva, quarto, cliente
WHERE reserva.id_cliente = cliente.id_cliente and reserva.num_quarto =
quarto.num_quarto
However, when I do a console.log(Rows), it appears to me this.
The name of the property of my database ends up changing to DATE_FORMAT... Since it is dt_input and dt_output.