Gets the maximum date and time less or equal than the specified date and time that is considered as a working time, determined based on the working week and working day definitions, excluding the defined nonworking time intervals.

Namespace:  DlhSoft.Windows.Data
Assembly:  DlhSoft.ProjectData.Core (in DlhSoft.ProjectData.Core.dll)

Syntax

C#
public DateTime GetPreviousWorkingTime(
	DateTime dateTime,
	Schedule schedule
)
Visual Basic (Declaration)
Public Function GetPreviousWorkingTime ( _
	dateTime As DateTime, _
	schedule As Schedule _
) As DateTime

Parameters

dateTime
Type: System..::..DateTime
The date and time to get the previous working time for.
schedule
Type: DlhSoft.Windows.Data..::..Schedule
Optionally, a schedule object to use instead of the default working and nonworking time intervals.

See Also