Date.Now Method
Gets the current system date and time in ISO format (YYYY-MM-DDThh:mm:ss).
Namespace: Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly: Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)
Syntax
'Declaration
Function Now As Object
'Usage
Dim instance As Date
Dim returnValue As Object
returnValue = instance.Now()
Object Now()
Return Value
Type: System.Object
An object that represents the current date and time.
Remarks
Important
This member can be accessed without restrictions.
Examples
In the following example, the variable currentDateTime is set to the current system date and time:
object currentDateTime = thisXDocument.Util.Date.Now();
thisXDocument.UI.Alert(currentDateTime.ToString());