Data work.my_data_file; Result_1 = Month(today()); Run; |
What's happening in the script above?
Variable | Input | Output | Description |
---|---|---|---|
Result_1 | Month(today()); | 4 | The month is extracted from a date, in this case, today's month (as of April 10th 2021) |
See also; DAY Function
See also; YEAR Function
Kevin Regan
Have an article, idea, found a typo, want to contribute? Shoot me an email
Here
Below are links to some Udemy Data Science Courses. I've been using Udemy for a number of years now, and I've found their courses super helpful, maybe you will also.