DATEJUL Function


DATEJUL Function

Converts a Julian date to a SAS date value

Category: Date and Time

Syntax

DATEJUL ( julian-date )

Arguments

julian-date

  • specifies a SAS numeric expression that represents a Julian date. A Julian date in SAS is a date in the form yyddd or yyyyddd , where yy or yyyy is a two-digit or four-digit integer that represents the year and ddd is the number of the day of the year. The value of ddd must be between 1 and 365 (or 366 for a leap year).

Examples

The following SAS statements produce these results:

SAS Statements

Results

Xstart=datejul(94365);

 

put Xstart / Xstart date9.;

12783

 

31DEC1994

Xend=datejul(2001001);

 

put Xend / Xend date9.;

14976

 

01JAN2001

See Also

Function:

  • 'JULDATE Function' on page 614




SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net