Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.
VB.Net: What day of the week is a certain date
From Wiki
This little code shows some ways to get the day of the week. Either as a number or as a word.
In my case it shows four because in belgium we start the week on monday. For some of you it will be three. The word is in dutch but this also depends on your local settings. Don't forget you can always set and reset the localsetting at runtime.
- Module Module1
- Sub Main()
- Dim _Date As New Date(2008, 7, 10)
- Console.WriteLine("begin")
- Console.WriteLine(_Date.ToString("dd/MM/yyyy"))
- Console.WriteLine(_Date.DayOfWeek())
- Console.WriteLine(_Date.ToString("dddd"))
- Console.ReadLine()
- End Sub
- End Module
this is the result.




LTD Social Sitings
Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.