D
Dave
What is the C# Equivalent to VB's Weekday function? I'm trying to
convert this:
Select Case Weekday(CurrentDate)
Case 1 ' Sunday
WKG = CurrentDate
Case 2 ' Monday
WKG = CurrentDate + 6
Case 3 ' Tuesday
WKG = CurrentDate + 5
Case 4 ' Wednesday
WKG = CurrentDate + 4
Case 5 ' Thursday
WKG = CurrentDate + 3
Case 6 ' Friday
WKG = CurrentDate + 2
Case 7 ' Saturday
WKG = CurrentDate + 1
End Select
If you know an easier way to do this...I'm open.
Thanks
convert this:
Select Case Weekday(CurrentDate)
Case 1 ' Sunday
WKG = CurrentDate
Case 2 ' Monday
WKG = CurrentDate + 6
Case 3 ' Tuesday
WKG = CurrentDate + 5
Case 4 ' Wednesday
WKG = CurrentDate + 4
Case 5 ' Thursday
WKG = CurrentDate + 3
Case 6 ' Friday
WKG = CurrentDate + 2
Case 7 ' Saturday
WKG = CurrentDate + 1
End Select
If you know an easier way to do this...I'm open.
Thanks