$DateJ: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
 
m (JAL moved page $DATEJ to $DateJ)
(No difference)

Revision as of 21:50, 25 September 2015

The $DATEJ function returns the current Julian date as a 5- to 7-character string in yy-ddd, format, for example, 97-342; or cyy-ddd format, for example, 097-342; or yyyy-ddd format, for example, 1997-342. The default is 5 characters. If $DATEJ is stored as a field value, you can use this form to sort records chronologically.

Usage

When using $DATEJ in field values, make sure that all values of $DATEJ are in the same format. You get incorrect results when sorting records if you mix yyyy, cyy, and yy formats.

Syntax

The format for $DATEJ is:

$DATEJ(year-format,fill-character)

For further syntax details see Overview of $DATE functions.

If Model 204 encounters an error, the function returns all asterisks (*).