Salesforce

Date (Magic xpi 4.7)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Date (Magic xpi 4.7)

Returns the system date.

Syntax:

Date()

Parameters:

None.

Returns:

A date.

Examples:

If the system date is 01/28/09, then Date() returns 28/01/09.

Note:

Magic xpi automatically converts the date to the default date format, 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 DateMode setting in the Magic.ini file, or by defining a suitable picture for the variable that holds the date.

If you want to add a numeric expression to this function, such as Date()+10, use the AddDate() function instead. This is because Magic xpi does not allow numeric expressions in Date fields.

See also:

DStr, DVal, Updating a Date Type Variable, How Do I Retrieve the Current Date?

Reference
Attachment 
Attachment