Set Datetime with Automation

I can’t seem to find this anywhere but I’m looking for some help to set an input_datetime with an automation. My goal is to have an automation that changes light colors during certain times (like the holidays) and sets an end date for each time frame that will then trigger the lights going back to normal. I have gotten it to set the date with the code below but I want the year to update always be the current year so I can just set the end month and day.

service: input_datetime.set_datetime
target:
  entity_id: input_datetime.end_date
data:
  date: '2021-07-16'

Thanks in advance for any help!

There is a bunch of examples at

You can do stuff like

service: input_datetime.set_datetime
target:
  entity_id: input_datetime.end_date
data:
  date: '{{ now().strftime("%Y") ~ "-12-31" }}'