Share via


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

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.

See also

Reference

Helper class

Helper members

Microsoft.SharePoint.WorkflowActions namespace