Colleagues,
The code below shows me the numeric (Int) sequential number of the day (in this case - Friday):
I cannot find how to convert it into the String (s./b. "Friday") - HOW-TO?
TIA!
Regards,
Ilya
The code below shows me the numeric (Int) sequential number of the day (in this case - Friday):
Code:
Dim ldToday As Date = Today, ldLastWeek As Date = ldToday.AddDays(-7), lcDate As String = ldLastWeek.ToString(Format("d")), _
lcFriday As String = "", ldFriday As Date = ldLastWeek
'MsgBox("Today: " & ldToday.ToString("d") & vbCrLf & "Last week: " & ldLastWeek.ToString("d") & vbCrLf & lcDate)
Do While ldFriday.DayOfWeek < DayOfWeek.Friday
ldFriday = ldFriday.AddDays(1)
Loop
MsgBox(ldFriday.DayOfWeek)
I cannot find how to convert it into the String (s./b. "Friday") - HOW-TO?
TIA!
Regards,
Ilya