Skip to main content
All docs
V25.1
  • GanttView.CalculateFinishDate(DateTime, TimeSpan) Method

    Calculates the time range’s finish date by using its start date and working time duration.

    Namespace: DevExpress.Xpf.Gantt

    Assembly: DevExpress.Xpf.Gantt.v25.1.dll

    NuGet Package: DevExpress.Wpf.Gantt

    Declaration

    public DateTime CalculateFinishDate(
        DateTime startDate,
        TimeSpan duration
    )

    Parameters

    Name Type Description
    startDate DateTime

    Start date and time.

    duration TimeSpan

    An actual working time duration for a time range that lasts from startDate to finishDate.

    Returns

    Type Description
    DateTime

    End date and time.

    Remarks

    The CalculateFinishDate method calculates the task or strip line finish date considering the nonworking date and time rules.

    See Also