How do I link user input datepicker to a dynamic page?

Hi so what I am trying to do is like a word of the day. Users can select a date from the date picker, and depending on the date it will link to a new dynamic page with a different word.

How can I link the data picker to the dynamic page?

image of my current code…