Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Converting Date to day

Posted on 2006-06-22
4
Medium Priority
?
252 Views
Last Modified: 2010-04-23
i want to switch 2005-10-10 to what day it did correspond on the calendar. Using .NET Framework 1.1.

Best Regards.
0
Comment
Question by:TheSonics
  • 2
4 Comments
 
LVL 10

Expert Comment

by:vadim63
ID: 16962474
Day of the week, day of the year?
0
 

Author Comment

by:TheSonics
ID: 16962488
Day of week.
0
 
LVL 10

Expert Comment

by:vadim63
ID: 16962549
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
 
LVL 37

Accepted Solution

by:
Harisha M G earned 1000 total points
ID: 16962563
MsgBox(Now().ToString("ddd"))

Instead of Now(), you can have your date
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question