共用方式為


SPUtility.GetExampleDateFormat method

會傳回指定的網站中所使用的日期格式的範例。

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

Syntax

'宣告
Public Shared Function GetExampleDateFormat ( _
    web As SPWeb, _
    stYearLabel As String, _
    stMonthLabel As String, _
    stDayLabel As String _
) As String
'用途
Dim web As SPWeb
Dim stYearLabel As String
Dim stMonthLabel As String
Dim stDayLabel As String
Dim returnValue As String

returnValue = SPUtility.GetExampleDateFormat(web, _
    stYearLabel, stMonthLabel, stDayLabel)
public static string GetExampleDateFormat(
    SPWeb web,
    string stYearLabel,
    string stMonthLabel,
    string stDayLabel
)

參數

  • stYearLabel
    Type: System.String

    包含代表範例年數字字串。

  • stMonthLabel
    Type: System.String

    包含代表範例月數字字串。

  • stDayLabel
    Type: System.String

    包含代表範例 1 天的數字字串。

傳回值

Type: System.String
String,代表網站中使用日期格式。

請參閱

參照

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace