I'm trying to make a sum of days, reported in a int
field, with a date
field using SQL. I tested the form below, but it adds up to the day, but ignores month and year. Is there any way to do this sum?
SELECT DATE_FORMAT(ocorrencias.dt_fechamento, '%d-%m-%Y')+50 as calendario from ocorrencias