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 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
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextA WorkflowContext object.
listIdOrName
Type: System.StringA string that represents the SharePoint Foundation list GUID or its display name.
listItem
Type: System.Int32An 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.