SAS : How to Display Current Date? Last Updated : 30 Jul, 2019 Improve Improve Like Article Like Save Share Report The today() function of SAS programming is basically used to generate current date. The format() function is used to display the format of the date in the specified format. In DD-MMM-YYYY format: Example: data _null_; dt=today(); format dt yymmdd10.; put dt ; run; Output: In DDMMMYYYY format: Example: data _null_; dt=today(); format dt date9.; put dt ; run; Output: 20JUL2019 In MONTH DD, YYYY format: Example: data _null_; dt=today(); format dt WORDDATE.; put dt ; run; Output: JULY 20, 2019 In WEEKDAY, MONTH DD, YYYY format: Example: data _null_; dt=today(); format dt date9.; put dt ; run; Output: Saturday, July 20, 2019 Like Article Suggest improvement Next SAS | Date Formats and Informats Share your thoughts in the comments Add Your Comment Please Login to comment...