Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the current system date in ISO format (YYYY-MM-DD).
Namespace: Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly: Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)
Syntax
'Declaration
Function Today As Object
'Usage
Dim instance As Date
Dim returnValue As Object
returnValue = instance.Today()
Object Today()
Return Value
Type: System.Object
An object that represents the current date.
Remarks
Important
This member can be accessed without restrictions.
Examples
In the following example, the variable currentDate is set to the current system date.
object currentDate = thisXDocument.Util.Date.Today();
thisXDocument.UI.Alert(currentDate.ToString());