Share via


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

Return value

Type: System.Int32
The number of seconds since midnight 1/1/1900.

See also

Reference

Helper class

Helper members

Microsoft.SharePoint.WorkflowActions namespace