Partilhar via


Helper.CurrentDate Method (WorkflowContext, Guid, Int32)

Retrieves the current system date of a specified SharePoint Foundation list item.

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

Syntax

'Declaration
Public Shared Function CurrentDate ( _
    context As WorkflowContext, _
    listId As Guid, _
    listItem As Integer _
) As DateTime
'Usage
Dim context As WorkflowContext
Dim listId As Guid
Dim listItem As Integer
Dim returnValue As DateTime

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

Parameters

  • listId
    Type: System.Guid

    A GUID that represents the SharePoint Foundation list.

  • listItem
    Type: System.Int32

    An integer that represents the specific list item.

Return Value

Type: System.DateTime
The current date of the SPWeb that contains the list item that the workflow instance 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