By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,033 Members | 1,285 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,033 IT Pros & Developers. It's quick & easy.

Return Day of Week from integer?

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
"What-a-Tool" <Fr***********************@cox.net> wrote in news:YjZab.124
$0Z5.97@lakeread03:
Seem to remember seeing a DayofWeek type function that would return a day
string from an integer.


WeekdayName.


--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 20 '05 #2

P: n/a
Hello,

"What-a-Tool" <Fr***********************@cox.net> schrieb:
Seem to remember seeing a DayofWeek type function that would
return a day string from an integer.


See (complete thread, ignore the text):

http://groups.google.de/groups?selm=...TNGP10.phx.gbl

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #3

P: n/a
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

"Lucas Tam" <RE********@rogers.com> wrote in message
news:Xn***************************@140.99.99.130.. .
"What-a-Tool" <Fr***********************@cox.net> wrote in news:YjZab.124
$0Z5.97@lakeread03:
Seem to remember seeing a DayofWeek type function that would return a day string from an integer.


WeekdayName.


--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/

Nov 20 '05 #4

P: n/a
Hello,

"What-a-Tool" <Fr***********************@cox.net> schrieb:
Seem to remember seeing a DayofWeek type function that would
return a day string from an integer.


See (complete thread, ignore the text):

http://groups.google.de/groups?selm=...TNGP10.phx.gbl

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #5

P: n/a
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

"Lucas Tam" <RE********@rogers.com> wrote in message
news:Xn***************************@140.99.99.130.. .
"What-a-Tool" <Fr***********************@cox.net> wrote in news:YjZab.124
$0Z5.97@lakeread03:
Seem to remember seeing a DayofWeek type function that would return a day string from an integer.


WeekdayName.


--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/

Nov 20 '05 #6

P: n/a
"What-a-Tool" <Fr***********************@cox.net> wrote in
news:l01bb.330$0Z5.74@lakeread03:
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
Nov 20 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.