← Back to challenges

The Day in Dutch

JavaScriptHardarraysdates

Instructions

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

Examples

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

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

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

Notes

  • You can assume the specified date is valid.
javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.