Converting Date to day

i want to switch 2005-10-10 to what day it did correspond on the calendar. Using .NET Framework 1.1.

Best Regards.
TheSonicsAsked:
Who is Participating?
 
Harisha M GCommented:
MsgBox(Now().ToString("ddd"))

Instead of Now(), you can have your date
0
 
vadim63Commented:
Day of the week, day of the year?
0
 
TheSonicsAuthor Commented:
Day of week.
0
 
vadim63Commented:
Dim d As Date = "10/10/2005"
        Dim dWeek As String
        Select Case d.DayOfWeek
            Case 1
                dWeek = "Mon"
            Case 2
                dWeek = "Tue"
            Case 3
                dWeek = "Wed"
            Case 4
                dWeek = "Thu"
            Case 5
                dWeek = "Fri"
            Case 6
                dWeek = "Sat"
            Case 7
                dWeek = "Sun"
        End Select
        MsgBox(dWeek)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.