I need to convert a date that comes as a string to Date
and subtract one day from that date.
I did as follows:
dataConvertida = new Date("2018-07-03")
But when you do the conversion, it automatically discounts one day and needs to get the exact date.