1

Using the .NET CultureInfo, how can I determine if a DateTime is in the weekend? The weekend is Saturday/Sunday in most of the world, but it's Friday/Saturday in Israel and the Muslim countries.

Anyone got a program that handles this? The question has been asked before here and here, but not answered. I'm hoping someone has a table or method to do this.

Community
  • 1
  • 1
David Thielen
  • 28,723
  • 34
  • 119
  • 193
  • I wrote my own code and posted the solution at http://stackoverflow.com/questions/2019098/finding-weekend-days-based-on-culture/19478887#19478887 (which asked before I did). – David Thielen Oct 20 '13 at 15:01

1 Answers1

0

The .Net CultureInfo does not have the information you desire. Your only choice at this point is to write your own implementation which requires compiling your own data.

Eric MSFT
  • 3,246
  • 1
  • 18
  • 28