SAS How To's Easily Extract the Week, Month, and Year in SAS In this article, we discuss how to extract the week, month, year, etc. from a date(time) variable.