共用方式為


DateOptions.GetShortDateString Method

Returns a string representation of the specified date and uses the short date format.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.Struct)> _
Public Function GetShortDateString ( _
    simpleDate As SimpleDate _
) As String
'Usage
Dim instance As DateOptions
Dim simpleDate As SimpleDate
Dim returnValue As String

returnValue = instance.GetShortDateString(simpleDate)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.Struct)]
public string GetShortDateString(
    SimpleDate simpleDate
)

Parameters

Return Value

Type: System.String
A string that contains the date in short-date format.

See Also

Reference

DateOptions Class

DateOptions Members

Microsoft.SharePoint.Utilities Namespace