Handle the date and time widget values