Skip to main content

This version of the product is no longer supported, and this documentation is no longer updated regularly. See the latest version of this content.Opens in a new tab

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

FeedbackOpens in a new tab