changed datetimepicker so that if useTime=false then any time component of the default date is removed