image\bbj40.gifJUL() - Get Julian Date - BBj


BBj-Specific information

For this topic's original documentation, see the JUL() Function - Get Julian Date.

Syntax

JUL(str1{,str2}{,str3}{,ERR=lineref})

Description

In BBj 4.0 and higher, the JUL() function returns the Julian day number for a given date.

Parameter

Description

str1

Date string.

str2

Date mask. If not specified, the mask from STBL("!DATE") is used. The mask is used to determine of the basic date format is MM/DD/YY (US), DD/MM/YY (EU) or YY/MM/DD (ISO), by looking at the relative positions of "%M", "%D" and "%Y" in the mask. If the date format cannot be determined from the mask, it is assumed to be MM/DD/YY.

str3

Locale. If not specified, the value of STBL("!LOCALE") is used. The locale is only relevant when passing a date string containing a week number reference. For more information, see Date Input - BBj.

ERR=lineref

Branch to be taken if an error occurs during execution.

Remarks

For more information, see Date Input - BBj.