Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.

For information on migrating to InterSystems IRIS, see How to Migrate to InterSystems IRIS, available on the WRC Distributions page (login required).

Date

Returns the current system date.

Synopsis

Date

Arguments

none

Description

The Date function returns the current date in a format such as the following:

mm/dd/yyyy

The exact display format depends on your system configuration. Leading zeros are displayed. The year is displayed as four digits.

Examples

The following example uses the Date function to return the current system date:

Dim MyDate
MyDate = Date
Println MyDate

See Also

  • Basic: Now function, Time function

  • ObjectScript: $HOROLOG special variable

  • SQL: NOW function

Feedback