The dateAdd
filter add some unit and formats a date with the same behavior than date filters.
twig
{{ user.birthday | dateAdd(-1, 'DAYS') }}
- amount: an integer value positive or negative
- unit:
NANOS
MICROS
MILLIS
SECONDS
MINUTES
HOURS
HALF_DAYS
DAYS
WEEKS
MONTHS
YEARS
DECADES
CENTURIES
MILLENNIA
ERAS
- format: see date
- existingFormat date
- timeZone date
- locale date