Use the $GREG2JUL() function to convert a Gregorian-format date to Julian format.
The $GREG2JUL() function has this syntax:
juldate = $GREG2JUL(gregdate)
The $GREG2JUL() function takes these arguments:
Julian-format date: yy.ddd or yyyy.ddd. The number of digits assigned to the year is the same as specified in the Gregorian format, either two or four. The day of the year is left-padded with zeros to three characters.
Gregorian-format date: mm/dd/yy or mm/dd/yyyy. The number of digits assigned to the year will be carried over to the result and must be either two or four. The length of the month and day fields is unimportant, except that the date must be valid.
The $GREG2JUL() function produces these return codes:
ARG 1 MISSING OR INVALID
INVALID YEAR
INVALID MONTH
INVALID DAY
Example
$GREG2JUL('12/31/99') == '99.366'
$GREG2JUL('1/1/2000') == '2000.001'
| Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |