Exercise

Break a date and time into component parts

Although YEAR(), MONTH(), and DAY() are helpful functions and are easy to remember, we often want to break out dates into different component parts such as the day of week, week of year, and second after the minute. This is where other functions we have learned come into play.

Here we will use the night the Berlin Wall fell, November 9th, 1989.

Instructions 1/3

undefined XP
    1
    2
    3
  • Begin by using the DATEPART() function to extract the appropriate date parts, referencing the documentation from Microsoft.