Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextA WorkflowContext object.
listId
Type: System.GuidA GUID that represents the SharePoint Foundation list.
listItem
Type: System.Int32An 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.