SoapDateTime.ToString(DateTime) Méthode
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
public:
static System::String ^ ToString(DateTime value);
public static string ToString (DateTime value);
static member ToString : DateTime -> string
Public Shared Function ToString (value As DateTime) As String
Représentation String de value
au format "aaaa-MM-jj'T'HH:mm:ss.fffffffzzz".
L'exemple de code suivant montre comment utiliser cette méthode. Cet exemple de code fait partie d’un exemple plus grand fourni pour la SoapDateTime classe.
// Serialize a DateTime object as an XSD dateTime string.
Console::WriteLine( "The date in XSD format is {0}.", SoapDateTime::ToString( dateTime ) );
// Serialize a DateTime object as an XSD dateTime string.
Console.WriteLine("The date in XSD format is {0}.",
SoapDateTime.ToString(dateTime));
Produit | Versions |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 |