Return Day of Week from integer?

  • Thread starter Thread starter What-a-Tool
  • Start date Start date
W

What-a-Tool

Have column headings named after days of the week. Have a Select Case to
determine day right now :

Select Case Col
Case 1
txtCol.Text = "Sunday"
ect...

Seem to remember seeing a DayofWeek type function that would return a day
string from an integer.

Could someone .refresh() my memory?
Or .dispose() of my faulty recollection>

Thanks - Sean
 
Can't seem to get the syntax right on this
I want to set the first day of week as Monday
Microsoft.VisualBasic.FirstDay ofWeek.Monday - How do I assign this?
What is the syntax for the Weekday name function.
Hunted all over the web and couldn't find a code sample that helped me.
Thanks - Sean
 
Can't seem to get the syntax right on this
I want to set the first day of week as Monday
Microsoft.VisualBasic.FirstDay ofWeek.Monday - How do I assign this?
What is the syntax for the Weekday name function.

Dim sDay as string
Dim iDay as integer

iDay = 1
sDay = WeekdayName(iDay,False,FirstDayOfWeek.Monday)

'sDay = "Monday"

Look in the DOCS for the WeekdayName function. It's all there.

Chris
 
Back
Top