Share via


Date.Today method

Gets the current system date in ISO format (YYYY-MM-DD).

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.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.

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());

See also

Reference

Date interface

Date members

Microsoft.Office.Interop.InfoPath namespace