Share via


Helper.CustomLookupDateTime Method (WorkflowContext, String, SPItemKey, String)

Retrieves the DateTime value of a specified field.

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

Syntax

'Declaration
Public Shared Function CustomLookupDateTime ( _
    context As WorkflowContext, _
    listId As String, _
    listItem As SPItemKey, _
    fieldName As String _
) As DateTime
'Usage
Dim context As WorkflowContext
Dim listId As String
Dim listItem As SPItemKey
Dim fieldName As String
Dim returnValue As DateTime

returnValue = Helper.CustomLookupDateTime(context, _
    listId, listItem, fieldName)
public static DateTime CustomLookupDateTime(
    WorkflowContext context,
    string listId,
    SPItemKey listItem,
    string fieldName
)

Parameters

  • listId
    Type: System.String

    A string value representing the GUID of the list. This value may also be the list display name.

  • fieldName
    Type: System.String

    A string representing a specific field name on the list.

Return Value

Type: System.DateTime
The instant in time.

See Also

Reference

Helper Class

Helper Members

CustomLookupDateTime Overload

Microsoft.SharePoint.WorkflowActions Namespace