Wired up the time of day things and fixed the datepicker