if theres entered value in the textfield, use it to define the selected day