Salesforce

Date (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Date (Magic xpa 3.x)

Returns the system date.

Syntax:

Date()

Parameters:

None

Returns:

Date

The function returns the system date in European format as the default (DD/MM/YY).

Examples:

If the system date is 01/28/92,
Date() returns 28/01/92.
Date()+5 returns 02/02/92.

Note:

The Date() function is often used in an Init column. This will set the field to the current date the first time the user sees the screen, and is also useful for setting timestamps for when a record was created or modified.

Magic xpa automatically converts the date to the date format set in the Environment dialog box (default), or to the picture of the variable that holds it. If the system date is set to the European format, you can display or print the system date in American format by changing the Date Mode setting in the Environment dialog box, or by defining a suitable picture for the variable that holds the date.

See also:

MDate

UTCDate

Str

DVal

How Do I Retrieve the Current Date?

The Online and Rich Client Samples projects (program DT01 and RDT01)

Reference
Attachment 
Attachment