Re: DateTime.ParseExact - "day of week was incorrect" exception!!
Hi embalism,
You may want to look at the following things...
1. It looks like you haven't specified the year in the format string. I assume the year is 1971 going by the process of elimination. I might be wrong of course. But I think you need to specify the year if you want to create a valid date time.
2. Secondly once you do specify the year, the numbers have to correspond to a real date in the calendar. For example if you want to create 2nd of September 1971 that date was a Thursday and not a Sunday.
3. Thirdly I would probably change the spelling of "SUNDAY" to "Sunday" to match the DaysOfWeek enumeration. The comparison might be case sensitive (I doubt it though...)
Bookmarks