Share via


SPUtility.GetExampleDateFormat - Méthode

Retourne un exemple du format qui est utilisé pour les dates dans le site spécifié.

Espace de noms :  Microsoft.SharePoint.Utilities
Assembly :  Microsoft.SharePoint (dans Microsoft.SharePoint.dll)

Syntaxe

'Déclaration
Public Shared Function GetExampleDateFormat ( _
    web As SPWeb, _
    stYearLabel As String, _
    stMonthLabel As String, _
    stDayLabel As String _
) As String
'Utilisation
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
)

Paramètres

  • stYearLabel
    Type : System.String

    Chaîne qui contient un nombre représentant une année de l'échantillon.

  • stMonthLabel
    Type : System.String

    Chaîne qui contient un nombre représentant le mois de l'échantillon.

  • stDayLabel
    Type : System.String

    Chaîne qui contient un nombre représentant un échantillon.

Valeur renvoyée

Type : System.String
Une chaîne qui représente le format de date qui est utilisé dans le site.

Voir aussi

Référence

SPUtility classe

SPUtility - Membres

Microsoft.SharePoint.Utilities - Espace de noms