共用方式為


DateOptions.GetDateString Method

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

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

Syntax

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

returnValue = instance.GetDateString(simpleDate, _
    format)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.Struct)]
public string GetDateString(
    SimpleDate simpleDate,
    string format
)

Parameters

  • format
    Type: System.String

    A string that contains the format to use for the date string.

Return Value

Type: System.String
A string that contains the specified date and uses the specified string format.

See Also

Reference

DateOptions Class

DateOptions Members

Microsoft.SharePoint.Utilities Namespace