473,473 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Return Day of Week from integer?

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
6 21703
"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
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
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
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
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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Christopher Murtagh | last post by:
Greetings, I've got a fairly simple function that I'm trying to return a set, but seem to have come across a stumbling block. When I execute the function below (the input params are not used at...
7
by: Shuffs | last post by:
Could someone, anyone please tell me what I need to amend, to get this function to take Sunday as the first day of the week? I amended the Weekday parts to vbSunday (in my code, not the code...
3
by: Kiran | last post by:
Hi, DateVal.DayOfWeek returns an integer value(0-6) that represents days from sun-sat. Is there a way to get the Day(like sunday, monday) from a Date Variable using VB.Net without using a...
6
by: aarklon | last post by:
Hi folks, I found an algorithm for calculating the day of the week here:- http://www.faqs.org/faqs/calendars/faq/part1/index.html in the section titled 2.5 what day of the week was 2 august...
5
by: Bobwhosmiles | last post by:
Hi All, New to the forum and new to T-SQL I'm trying to add a column to the results of query that shows a text string representing the day of the week. Select Activity.StartDateTime as DAY...
2
by: rsk | last post by:
Friends, The following logic just converts the hexadecimal values to the binay values taken into the array. for(i=31;i>=0;i--){ if ((1<<i)&var1) array_var1=1; else array_var1=0;
9
by: jacob navia | last post by:
Hi I am incorporating 128 Bit integer code into lcc-win and it would be nice to have some code to test this feature. Has anyone here code that uses 128 bit integers? Thanks in advance ...
1
by: anu29dolly | last post by:
error:return makes integer from pointer without a cast.. following is my code ..plz help to track the bug ......... #include <stdio.h> #include <stdlib.h> #include <sys/stat.h> #include...
2
by: si la | last post by:
Hi am using vs2008 writing asp.net.vb app. My stored proc should return a single name, well in theory at least ALTER PROCEDURE . ( @email varchar , @retvalue nvarchar (10)output ) AS
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.