Today is 21.10.2012. and it is Sunday.
But my VB.NET think different:
Debug.Print("Weekday for the date '21.10.2012.'is " & WeekdayName(Weekday("21.10.2012.")))
Debug.Print("Weekday for the date '21/10/2012'is " & WeekdayName(Weekday("21/10/2012")))
Debug.Print("Weekday for the date '" & DateTime.Now.Date & "'is " & WeekdayName(Weekday(DateTime.Now.Date)))
All those 3 checks give me: ‘Monday’ for weekday name!
What to do to get proper weekday names?
This is the correct .NET way to get the weekday name of a given date: