I was born on the 21st of September in the year of 1970. That was a Monday. Where I was born that weekday is called måndag.
- Write a method that when passed a date as year/month/ day and returns the date's weekday name in the Dutch culture. The culture identifier to use is "nl-NL". Not "nl-BE".
- You can assume the specified date is valid.
- Looking at the tests and doing a switch statement or similar is considered cheating.
System.Globalization.CultureInfo should be used.- The method may be used to get the name of the Dutch weekday of other memorable days too, like in the examples below:
Examples
WeekdayRobWasBornInDutch(1970, 9, 21)) ➞ "maandag"
WeekdayRobWasBornInDutch(1945, 9, 2)) ➞ "zondag"
WeekdayRobWasBornInDutch(2001, 9, 11)) ➞ "dinsdag"
Notes
Check the Resources tab for help.