2
I would like to get today’s date, and subtract it from 7 days. Remember that if we are on the 2nd for example, you should subtract 1 from the month. The same applies to the year.
Unfortunately, I only found examples that refer to a specific day, and not subtract an n of days.
um_mes.getDate() - 30
andum_ano.getDate() - 365
is not perfect. There are months and years with different durations.– Sergio
You’re absolutely right, I thought it was dated 30 days ago. I’ll correct
– Miguel