Delen via


Helper.CurrentDate Method (WorkflowContext, String, Int32)

Retrieves the current system date of a specified SharePoint Foundation list item either by its GUID or display name.

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 Integer _
) As DateTime
'Usage
Dim context As WorkflowContext
Dim listIdOrName As String
Dim listItem As Integer
Dim returnValue As DateTime

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

Parameters

  • listIdOrName
    Type: System.String

    A string that represents the SharePoint Foundation list GUID or its display name.

  • listItem
    Type: System.Int32

    An integer that represents the specific list item.

Return Value

Type: System.DateTime
The current system date of the SPWeb containing the list item that the workflow is running on. This value is expressed in the local server time zone.

See Also

Reference

Helper Class

Helper Members

CurrentDate Overload

Microsoft.SharePoint.WorkflowActions Namespace