Show All

# Date Object

Provides several date-related methods that can be used in Microsoft Office InfoPath 2003 forms.

## Remarks

Use the Date property of the Util object to return a Date object.

Note This object model member is not supported when the Disable Service Pack features option on the Advanced tab of the Options dialog box in InfoPath is selected or when Microsoft Office 2003 Service Pack 1 or later is not installed. Any form that implements this object model member in its code will generate an error message if it is opened in InfoPath when service pack features are disabled or unavailable.

## Using the Date object

The Date object contains the following methods:

Method | Description
--- | ---
Now | Returns a Variant that represents the current system date and time in ISO format.
Today | Returns a Variant containing the current system date in ISO format.

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp