GetTaskFinishDateFromDuration

Calendar.GetTaskFinishDateFromDuration method

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

public DateTime GetTaskFinishDateFromDuration(Task task, TimeSpan duration)
Parameter Type Description
task Task The task to get finish date for.
duration TimeSpan The task duration to split on.

Return Value

Task’s finish date.

Remarks

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

See Also