Solved

Converting Date to day

Posted on 2006-06-22
4
241 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 250 total points
ID: 16962563
MsgBox(Now().ToString("ddd"))

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

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

747 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now