Share via


Helper.CurrentDate method (WorkflowContext, String, SPItemKey)

Retrieves the current date of a specified list item.

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

Syntax

'Declaration
Public Shared Function CurrentDate ( _
    context As WorkflowContext, _
    listIdOrName As String, _
    listItem As SPItemKey _
) As DateTime
'Usage
Dim context As WorkflowContext
Dim listIdOrName As String
Dim listItem As SPItemKey
Dim returnValue As DateTime

returnValue = Helper.CurrentDate(context, _
    listIdOrName, listItem)
public static DateTime CurrentDate(
    WorkflowContext context,
    string listIdOrName,
    SPItemKey listItem
)

Parameters

  • listIdOrName
    Type: System.String

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

Return value

Type: System.DateTime
The instant in time.

See also

Reference

Helper class

Helper members

CurrentDate overload

Microsoft.SharePoint.WorkflowActions namespace