Modified the get_start and get_end methods to return datetimes if times are specified.