Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
data _null_;
length txtDate $5
numDate 8
;
/*-- as text - not so nice */
txtDate = '0225';
txtDate = substr(txtDate,1,2) !! '/' !! substr(txtDate,3);
put ' Brute Force Text: ' txtDate;
/*-- as numeric date */
numDate = '25-FEB-2011'd;
put ' Full numeric Date: ' numDate YYMMDD10.;
put 'Short numeric Date: ' numDate MMDDYY5.;
/*-- to store from number as text: */
txtDate = put (numDate, MMDDYY5.);
run;
OUTPUT:
Brute Force Text: 02/25
Full numeric Date: 2011-02-25
Short numeric Date: 02/25