Windows Phone Developers

Sunday, April 8, 2007

Get Day of the Week

A simplest function to get the day of the week

Sub DisplayTime()
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!"
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

Digg Technorati Delicious StumbleUpon Reddit BlinkList Furl Mixx Facebook Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl StumbleUpon

No comments:

Post a Comment