substract
examples
date now subtract year 1 result 2024-06-21
input
Date.now.substract(year: 1)
result
2024-06-21
date yesterday subtract month 1 result 2025 05 20
input
Date.yesterday.substract(month: 1)
result
2025-05-20
date tomorrow subtract day 1 result 2025 06 21
input
Date.tomorrow.substract(day: 1)
result
2025-06-21