Sunday, April 8, 2007

Get Day of the Week

A simplest function to get the day of the week

Sub DisplayTime()
MessageBox.Show(GetTime)
End Sub

Function GetTime() As String
If My.Computer.Clock.LocalTime.DayOfWeek = DayOfWeek.Saturday Or _
My.Computer.Clock.LocalTime.DayOfWeek = DayOfWeek.Sunday Then
Return "Happy Weekend!"
Else
Return "Happy Weekday! Don't work too hard!"
End If
End Function

Web Links Directory
Submit your website to 20 Search Engines - FREE with ineedhits!




AddMe - Search Engine Optimization


Visual Basic .Net Tips & Tricks, VS.Net 2003, VB 2005 Tips, .Net Code Downloads



Free Search Engine Submission

Free Search Engine Submission