473,408 Members | 1,858 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

WeekdayName

I use function: WeekdayName(2, False,
Microsoft.VisualBasic.FirstDayOfWeek.Monday)

and I get names in my language.

Can I set that the names are in English language?

Or I should write my own function for that?

Thank you,

Simon
Nov 21 '05 #1
1 2053
One option is to change the current culture temporarily to Englist, get the
week day name and restore the original culture.
Eg:

Dim cur As CultureInfo = Thread.CurrentThread.CurrentCulture
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US")
' Use WeekdayName to get in US English
Thread.CurrentThread.CurrentCulture = cur

Hope this helps.

"simon" <si*********@stud-moderna.si> wrote in message
news:O2*************@TK2MSFTNGP11.phx.gbl...
I use function: WeekdayName(2, False,
Microsoft.VisualBasic.FirstDayOfWeek.Monday)

and I get names in my language.

Can I set that the names are in English language?

Or I should write my own function for that?

Thank you,

Simon

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: sonti srinath | last post by:
*** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
2
by: Alan Ho | last post by:
Function Helper(ByVal obj As Object) As String Dim thisDate As Date = CDate(obj) Return WeekdayName(Weekday(thisDate, vbSunday), False, vbSunday) & "<br>" & _ thisDate.Day & "/" & thisDate.Month...
5
by: What-a-Tool | last post by:
Have a group of dynamically created text boxes in a calendar like grid. At the head of each column, the textbox is to contain the day of the week. Now I am using a Select Case statement to...
8
by: NomoreSpam4Me | last post by:
HI, i have a query that gives me the number of the day, ei: sunday is 1, monday is 2 .....saturday is 7 What i wanna do is take that 2 and bring it back to Monday. How can i do this? IS there...
14
by: Divit | last post by:
I want my code to tell me that (today) April 12th is the second wednesday of the month. And only thing I can find is the function to tell me what date belongs to the 2nd day in a given month and...
4
by: kai | last post by:
Hi, I am looking for a function returning day like Day()=Monday but it only return1 "1". Is it possible? Thanks Kai
8
by: ukwa | last post by:
I have these codes that are supposed to load control arrays (days of week), there is only one textbox visible at design time, but I want to use control array to initialize the other six textboxes in...
7
by: tasmontique | last post by:
I have an access table that outputs to excel using a query . However what I am trying to do is under the arrival date column specify a criteria based on the Datepart function that only displays...
4
by: AdrianGawrys | last post by:
Can someone tell me why this query works: SELECT WeekdayName(Weekday(#17/02/2007#)-1) AS and this one doesnt SELECT WeekdayName(Weekday(#18/02/2007#)-1) AS what I am trying to achieve is to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
0
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,...

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.