ICalendar.GetTaskFinishDateFromDuration

ICalendar.GetTaskFinishDateFromDuration method

Calculates the task finish date and time from its start date, split parts and the work duration.

public DateTime GetTaskFinishDateFromDuration(Task task, TimeSpan duration)
ParameterTypeDescription
taskTaskThe task to calculate finish date for.
durationTimeSpanThe duration to calculate.

Return Value

Task’s finish date for the given start date and duration.

Remarks

Returns DateTime.MinValue if task is summary, null or its start date is not set.

See Also