Date and time formats in sas

fixed date = ‘10mar2018’d <here d is called as d literal>
‘3.56't time literal

other important functions

datdif() >returns difference in days

intck(‘year’, mdy(12,31,year), ‘14MAR2019’d,’continuous’)
intnx('month', '14MAR2019'd, 3, 'sameday');

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store