Click or drag to resize

ProcessDateTimeCalculateDeadline Method

Calculates the deadline.

Namespace: Scanjour.Workflow4.Web.Services.Helpers
Assembly: Scanjour.Workflow4.Web.Services (in Scanjour.Workflow4.Web.Services.dll) Version: 24.5.0.0 (24.5.0.0)
Syntax
public static DateTime? CalculateDeadline(
	this DateTime startDate,
	string defaultDuration,
	string defaultTime,
	string durationUnit,
	TimeZoneInfo timeZone
)

Parameters

startDate  DateTime
The start date.
defaultDuration  String
The default duration.
defaultTime  String
The default time.
durationUnit  String
The duration unit.
timeZone  TimeZoneInfo
The clients timezone.

Return Value

NullableDateTime
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