Date.Today method

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

See also

Reference

Date interface

Date members

Microsoft.Office.Interop.InfoPath.SemiTrust namespace