Salesforce

UTCDate (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

UTCDate (Magic xpa 3.x)

Returns the current Coordinated Universal Time (UTC) date.

Syntax:

UTCDate()

Parameters:

None

Returns:

UTC Date

The function returns the current date in UTC format.

Examples:

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

Note:

The UTCDate() 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 relevant parameter in the Environment dialog box,or by defining a suitable picture for the variable that holds the date.

See also:

Date

UTCTime

UTCmTime

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

Since version:

2.4

Reference
Attachment 
Attachment