Partilhar via


Helper.DateTimeToStringShortDate Method

Converts the specified time instance to a short date value.

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

Syntax

'Declaration
Public Shared Function DateTimeToStringShortDate ( _
    context As WorkflowContext, _
    val As Object _
) As String
'Usage
Dim context As WorkflowContext
Dim val As Object
Dim returnValue As String

returnValue = Helper.DateTimeToStringShortDate(context, _
    val)
public static string DateTimeToStringShortDate(
    WorkflowContext context,
    Object val
)

Parameters

Return Value

Type: System.String
A local short date value.

Remarks

This method throws a CoercionException exception if val is null or not a DateTime object.

This method converts the specified time instance to a ShortDatePattern.

See Also

Reference

Helper Class

Helper Members

Microsoft.SharePoint.WorkflowActions Namespace