So I’m trying to build a filter that searches the date ranges, and I’m trying to get the date of today and the date before 30 days, so the search by default would be in this case for example: FROM 11-03-2022 TO 11-04-2022, and I don’t know how to get the current date – 30 days.
const from = ?
const to = new Date().toISOString().slice(0, 10)
// then those values I'm adding to input type date with on change events