Chapter Contents

Previous

Next
DATE

DATE



Returns the current date as a SAS date value

Category: Date and Time


Syntax
Details
Examples

Syntax

DATE()


Details

The DATE function produces the current date in the form of a SAS date value, which is the number of days since January 1, 1960.


Examples

These statements illustrate a practical use of the DATE function:

tday=date();
if (tday-datedue)> 15 then
   do;
      put 'As of ' tday date9. ' Account #'
           account 'is more than 15 days overdue.';
   end;


Chapter Contents

Previous

Next

Top of Page

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