Function Date() Foundation

Retrieves system date.

Syntax
Date() --> dSysDate
Return

Date() returns the system date as a date value.

Description

Only CtoD(), StoD() and Date() can create date values. Date() is used anywhere date comparisons or calculations need the current date.

The format in which date values are displayed is determined by the command SET DATE. When SET DATE is not specified, the country specific date format from the system configuration is used as the default format.

Examples
Date()
// The example shows various results of the function Date() 

PROCEDURE Main 

   ? Date()                         // result: 12/06/94 
   ? Date() + 18                    // result: 12/24/94 
   ? Date() - 365                   // result: 12/06/93 
   dDate := Date() 
   ? CMonth(dDate)                  // result: December 

RETURN 
Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.