ProcessDateTimeCalculateDeadline Method

Scanjour Workflow4 Reference Manual
Calculates the deadline.

Namespace:  Scanjour.Workflow4.Web.Services.Helpers
Assembly:  Scanjour.Workflow4.Web.Services (in Scanjour.Workflow4.Web.Services.dll) Version: 23.3.0.0 (23.3.0.0)
Syntax

public static DateTime CalculateDeadline(
	this DateTime startDate,
	string defaultDuration,
	string defaultTime,
	string durationUnit
)

Parameters

startDate
Type: SystemDateTime
The start date.
defaultDuration
Type: SystemString
The default duration.
defaultTime
Type: SystemString
The default time.
durationUnit
Type: SystemString
The duration unit.

Return Value

Type: DateTime
Calculated deadline for the process

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DateTime. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also

Reference