Skip to main content

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