set date from manual input

This allows the date to be set from the user manually inputing the date
into the input box.