helper methodsresult typeparameters

parsedatetext or number
https://date-fns.org/v1.30.1/docs/parse
todaydate

https://date-fns.org/v1.30.1/docs/startOfToday
addDaysdatebase datenumber of days to addhttps://date-fns.org/v1.30.1/docs/addDays
addWeeksdatebase datenumber of weeks to addhttps://date-fns.org/v1.30.1/docs/addWeeks
addMonthsdatebase datenumber of months to addhttps://date-fns.org/v1.30.1/docs/addMonths
addYearsdatebase datenumber of years to addhttps://date-fns.org/v1.30.1/docs/addYears
subDaysdatebase datenumber of days to subtracthttps://date-fns.org/v1.30.1/docs/subDays
subWeeksdatebase datenumber of weeks to subtracthttps://date-fns.org/v1.30.1/docs/subWeeks
subMonthsdatebase datenumber of months to subtracthttps://date-fns.org/v1.30.1/docs/subMonths
subYearsdatebase datenumber of years to subtracthttps://date-fns.org/v1.30.1/docs/subYears
agenumberbirth date

newdateyear, month, day

dayOfnumber

https://date-fns.org/v1.30.1/docs/getDate
dayOfWeeknumber

https://date-fns.org/v1.30.1/docs/getDay
daysBetweennumber

https://date-fns.org/v1.30.1/docs/differenceInDays
monthOfnumber

https://date-fns.org/v1.30.1/docs/getMonth
monthsBetweennumber

https://date-fns.org/v1.30.1/docs/differenceInMonths
yearOfnumber

https://date-fns.org/v1.30.1/docs/getYear
yearsBetweennumber

https://date-fns.org/v1.30.1/docs/differenceInYears