*Copyright @ www.mycsg.in;


How SAS stores dates

Demonstrate the underlying numeric value

Date literals

Common date informats - reading dates into SAS

Reading dates from character variables using INPUT

Common date formats - displaying SAS dates

Applying different formats to the same date value

Core date functions

TODAY() and DATE() - get the current date

MDY() - construct a date from year, month, and day components

YEAR(), MONTH(), DAY() - extract components from a date

Date arithmetic

Difference in days between two dates

Adding and subtracting a fixed number of days

Key points to remember