Helper.DateTimeToSecondsInt32 Method
Converts the specified time instance to a value that represents the number of seconds since midnight 1/1/1900.
Namespace: Microsoft.SharePoint.WorkflowActions
Assembly: Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)
Syntax
'Declaration
Public Shared Function DateTimeToSecondsInt32 ( _
context As WorkflowContext, _
val As Object _
) As Integer
'Usage
Dim context As WorkflowContext
Dim val As Object
Dim returnValue As Integer
returnValue = Helper.DateTimeToSecondsInt32(context, _
val)
public static int DateTimeToSecondsInt32(
WorkflowContext context,
Object val
)
Parameters
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextA workflow context that contains properties that are associated with the active workflow instance.
val
Type: System.ObjectThe date time to be converted.
Return Value
Type: System.Int32
The number of the seconds of the val since midnight 1/1/1900.
Remarks
This method throws a CoercionException exception if val is null , not a DateTime object, or beyond the range of date member values, such as the year before 1.