Helper.CurrentDate Method (WorkflowContext, Guid, 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, _
listId As Guid, _
listItem As SPItemKey _
) As DateTime
'Usage
Dim context As WorkflowContext
Dim listId As Guid
Dim listItem As SPItemKey
Dim returnValue As DateTime
returnValue = Helper.CurrentDate(context, _
listId, listItem)
public static DateTime CurrentDate(
WorkflowContext context,
Guid listId,
SPItemKey listItem
)
Parameters
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextA WorkflowContext object that contains properties that are associated with the active workflow instance.
listId
Type: System.GuidA string value representing the GUID of the list. This value may also be the list display name.
listItem
Type: Microsoft.SharePoint.Workflow.SPItemKeyAn integer that represents a specific list item.
Return Value
Type: System.DateTime
The instant in time.