Sep 28, 2012 · We have added an online, interactive SAS Date Calculator and Converter.It is available for free in this post (above). To use it, enter a date value in the first text box, and the unformatted date value (i.e., the number of days since 1/1/1960) that SAS associates with that number will appear in the second text box. You can also place blanks before and after the date. Make sure the width of the input field allows space for blanks and special characters. Note: SAS interprets a two-digit year as belonging to the 100-year span that is defined by the YEARCUTOFF= system option.
YYMMDD10. - > To get ISO 8601 Date format, YYYY-MM-DD DATE9. - > To get readable Date format, DDMMMYYYY. Before starting with other Date formats, lets refresh basic concepts of SAS Date-Time. SAS uses 01JAN1960 as reference Date for calculating all Date values. While working with Date formats in SAS, key things we need to understand is –
SAS Dates are one of the most confusing subjects for beginners. It seems that every time there's a new data source, you have to create a new way to input or format a SAS Date. These examples should help beginners to master SAS Dates. SAS DATES First, SAS Dates are only good back to the year 1582 A.D.