Helper.DateTimeToInt32AsSecondsExceptNull Method
Attempts to coerce a Datetime object into a Int32 value.
Namespace: Microsoft.SharePoint.WorkflowActions
Assembly: Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)
Syntax
'Declaration
Public Shared Function DateTimeToInt32AsSecondsExceptNull ( _
context As WorkflowContext, _
val As Object _
) As Integer
'Usage
Dim context As WorkflowContext
Dim val As Object
Dim returnValue As Integer
returnValue = Helper.DateTimeToInt32AsSecondsExceptNull(context, _
val)
public static int DateTimeToInt32AsSecondsExceptNull(
WorkflowContext context,
Object val
)
Parameters
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextA WorkflowContext object that contains properties that are associated with the active workflow instance.
val
Type: System.ObjectA Object
Return Value
Type: System.Int32
The number of seconds since midnight 1/1/1900.