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
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextA workflow context that contains properties that are associated with the active workflow instance.
val
Type: System.ObjectA value to be converted.
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 .