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
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextA WorkflowContext object that contains properties that are associated with the active workflow instance.
listIdOrName
Type: System.StringA 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.