Multiple choice technology programming languages

The function that gives the day of the week is

  1. dayofweek

  2. weekday

  3. dayweek

  4. weeknum

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The WEEKDAY function in SAS returns the day of the week (1=Sunday, 2=Monday, etc.) from a SAS date value. Functions like dayofweek, dayweek, and weeknum do not exist in SAS. WEEKDAY is the correct function for extracting the day of the week.