Date.Today - Méthode
Obtient la date en vigueur sur le système au format ISO (AAAA-MM-JJ).
Espace de noms : Microsoft.Office.Interop.InfoPath
Assembly : Microsoft.Office.Interop.InfoPath (dans Microsoft.Office.Interop.InfoPath.dll)
Syntaxe
'Déclaration
Function Today As Object
'Utilisation
Dim instance As Date
Dim returnValue As Object
returnValue = instance.Today()
Object Today()
Valeur renvoyée
Type : System.Object
object qui représente la date en vigueur.
Exemples
Dans l'exemple suivant, la date en vigueur sur le système est affectée à la variable currentDate :
object currentDate = thisXDocument.Util.Date.Today();
thisXDocument.UI.Alert(currentDate.ToString());