firstdivision
MIS
Hi,
Since this code:
returns "Sun" (i.e. Sunday). I'd like to find a way to get String.Format (or some other method from the Date namespace) to do the same thing (return the abbriviated day of the week). My guess is that the error in the above code is some sort of combination of old Visual Basic function, that FirstDayofWeek thing, and whatever.
I've gotten around it by using:
which is working pretty well, but there must be a .NET way to do it.
Thanks,
-FD
Since this code:
Code:
WeekdayName(DayOfWeek.Monday, True)
returns "Sun" (i.e. Sunday). I'd like to find a way to get String.Format (or some other method from the Date namespace) to do the same thing (return the abbriviated day of the week). My guess is that the error in the above code is some sort of combination of old Visual Basic function, that FirstDayofWeek thing, and whatever.
I've gotten around it by using:
Code:
Left(MyDateVariable.DayOfWeek.ToString, 3)
which is working pretty well, but there must be a .NET way to do it.
Thanks,
-FD