Partilhar 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