Share via


Helper.ToDateTime method

Converts a specified value into an equivalent DateTime value.

Namespace:  Microsoft.SharePoint.WorkflowActions
Assembly:  Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)

Syntax

'Declaration
Public Shared Function ToDateTime ( _
    context As WorkflowContext, _
    val As Object _
) As DateTime
'Usage
Dim context As WorkflowContext
Dim val As Object
Dim returnValue As DateTime

returnValue = Helper.ToDateTime(context, _
    val)
public static DateTime ToDateTime(
    WorkflowContext context,
    Object val
)

Parameters

Return value

Type: System.DateTime
The date and time that is converted from val.

Remarks

This method converts val into an equivalent DateTime value.

This method returns midnight 1/1/1900 if val is null .

See also

Reference

Helper class

Helper members

Microsoft.SharePoint.WorkflowActions namespace