Sdílet prostřednictvím


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