Adding empty as a valid value for the starttime and endtime