Chapter Contents

Previous

Next
DATEJUL

DATEJUL



Converts a Julian date to a SAS date value

Category: Date and Time


Syntax
Arguments
Examples
See Also

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- 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 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


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.