XsltFunctions.MSFormatDateTime(String, String, String, Boolean) Méthode

Définition

Implémente les fonctions d’extension ms:format-date XPath et ms-format-time Microsoft.

Cette API prend en charge l'infrastructure du produit et n'est pas destinée à être utilisée directement à partir de votre code.

public:
 static System::String ^ MSFormatDateTime(System::String ^ dateTime, System::String ^ format, System::String ^ lang, bool isDate);
public static string MSFormatDateTime(string dateTime, string format, string lang, bool isDate);
static member MSFormatDateTime : string * string * string * bool -> string
Public Shared Function MSFormatDateTime (dateTime As String, format As String, lang As String, isDate As Boolean) As String

Paramètres

dateTime
String

Chaîne qui contient des données de date/heure.

format
String

Chaîne qui contient le format.

lang
String

Chaîne qui contient la langue.

isDate
Boolean

Valeur booléenne qui indique si la date/heure contient une date.

Retours

Chaîne qui contient la date et l’heure mises en forme.

S’applique à