Added onSet function to DatePicket to handle previously set dates read from input field