Modified to set mindate and mintime for datetimepicker