/***************************************************************************************************************** SAS file name: custom_date_format File location: _________________________________________________________________________________________________________________ Purpose: To demonstrate how to use PROC FORMAT to write user defined date and datetime formats in SAS. Author: Peter Clemmensen Creation Date: 01/05/2019 This program supports the example page "Write Custom Date and Datetime Formats in SAS" on SASnrd.com *****************************************************************************************************************/ /* Simple date format example */ proc format; picture dtfmt (default=30) low - high = '%A %D %B %Y' (datatype=date) ; run; data test; do date='01jan2019'd to '07jan2019'd; output; end; run; proc report data=test; define date / display left format=dtfmt.; run; /* Language specific date formats */ options locale=Danish_Denmark;