Input.datetime for a period during the year

How is this different that what I provided in your other thread?

Also, please follow the Community Guidelines and format code blocks properly so that users answering your questions can copy and paste more easily.