The Day in Dutch

Published by Jameel Saeb in

Write a method that when passed a date as "dd mm yyyy" and returns the date's weekday name in the Dutch culture.

Examples

weekday_dutch("21 9 1970") ➞ "maandag"

weekday_dutch("2 9 1945") ➞ "zondag"

weekday_dutch("9 11 2001") ➞ "dinsdag"

Notes

  • Check the Resources tab for help.
  • You can assume the specified date is valid.
Watch a quick demo on how Edabit works.