Delen via


Helper.DateTimeToStringShortTime Method

Converts the specified the instant in time to a short time value.

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

Syntax

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

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

Parameters

Return Value

Type: System.String
A local short time value that is converted based on the val.

Remarks

A short time value is in the form of ShortTimePattern.

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

See Also

Reference

Helper Class

Helper Members

Microsoft.SharePoint.WorkflowActions Namespace