Auto Add Years based on Tax Year

HI very simple how can i auto show last year and this year automatically so it adjusts each year

HMRC Self-Assessment Tax Return for period:- 6 April (enter previous year 2023) - 5 April (add current year or +1 to previous year specified)

Something like this would work:

Current Year: {time: YYYY}
Previous Year: {time: YYYY; shift=-1Y}