Skip to main content
A newer version of this page is available. .

GanttView.CalculateStartDate(DateTime, TimeSpan) Method

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

Namespace: DevExpress.Xpf.Gantt

Assembly: DevExpress.Xpf.Gantt.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Gantt, DevExpress.Wpf.Gantt

Declaration

public DateTime CalculateStartDate(
    DateTime finishDate,
    TimeSpan duration
)

Parameters

Name Type Description
finishDate DateTime

End date and time.

duration TimeSpan

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

Returns

Type Description
DateTime

Start date and time.

Remarks

The CalculateStartDate method calculates the task or strip line start date considering the nonworking date and time rules.

See Also