Click here to Skip to main content
15,891,529 members
Home / Discussions / C#
   

C#

 
GeneralRe: Type.GetMembers() Pin
Arun Bhalla26-Oct-03 8:40
Arun Bhalla26-Oct-03 8:40 
GeneralRe: Type.GetMembers() Pin
Arun Bhalla27-Oct-03 12:01
Arun Bhalla27-Oct-03 12:01 
Generalint value of all WM_... messages Pin
oOomen25-Oct-03 10:25
oOomen25-Oct-03 10:25 
GeneralRe: int value of all WM_... messages Pin
Nick Parker25-Oct-03 11:23
protectorNick Parker25-Oct-03 11:23 
GeneralRe: int value of all WM_... messages Pin
J. Dunlap25-Oct-03 11:39
J. Dunlap25-Oct-03 11:39 
GeneralRe: int value of all WM_... messages Pin
Nick Parker25-Oct-03 11:56
protectorNick Parker25-Oct-03 11:56 
QuestionDayOfWeek in other languages? Pin
mistery2225-Oct-03 2:34
mistery2225-Oct-03 2:34 
AnswerRe: DayOfWeek in other languages? Pin
mistery2225-Oct-03 3:51
mistery2225-Oct-03 3:51 
I found it by myself Smile | :)

It seems that .DayOfWeek only returns the english name.

When you use to formatted string DateTime.Now.ToString("dddd") it returns the day with the name in the language from the windows settings (not the windows language itsels).

To force it to another language you can use.
<br />
System.Globalization.CultureInfo ci = new CultureInfo("fr-BE");<br />
DateTime.Now.ToString("dddd", ci)<br />


And it will return the day of the week in the language specified in the CultureInfo. Cool | :cool:

So I was right to suppose a switch structure was not he .Net way.
GeneralNew #dev....again [edit] Pin
leppie25-Oct-03 1:57
leppie25-Oct-03 1:57 
GeneralRe: New #dev....again Pin
Rocky Moore25-Oct-03 2:53
Rocky Moore25-Oct-03 2:53 
GeneralRe: New #dev....again Pin
J. Dunlap25-Oct-03 9:12
J. Dunlap25-Oct-03 9:12 
GeneralRe: New #dev....again [edit] Pin
mistery2225-Oct-03 3:23
mistery2225-Oct-03 3:23 
GeneralRe: New #dev....again [edit] Pin
Rocky Moore25-Oct-03 4:03
Rocky Moore25-Oct-03 4:03 
GeneralRe: New #dev....again [edit] Pin
J. Dunlap25-Oct-03 9:09
J. Dunlap25-Oct-03 9:09 
GeneralRe: New #dev....again [edit] Pin
leppie25-Oct-03 9:22
leppie25-Oct-03 9:22 
GeneralRe: New #dev....again [edit] Pin
J. Dunlap25-Oct-03 9:30
J. Dunlap25-Oct-03 9:30 
GeneralRe: New #dev....again [edit] Pin
leppie25-Oct-03 9:37
leppie25-Oct-03 9:37 
GeneralRe: New #dev....again [edit] Pin
J. Dunlap25-Oct-03 9:51
J. Dunlap25-Oct-03 9:51 
GeneralRe: New #dev....again [edit] Pin
Blake Coverett26-Oct-03 2:07
Blake Coverett26-Oct-03 2:07 
GeneralC# Network... Need Suggestions. Pin
fadee24-Oct-03 22:35
fadee24-Oct-03 22:35 
GeneralRe: C# Network... Need Suggestions. Pin
Blake Coverett25-Oct-03 20:15
Blake Coverett25-Oct-03 20:15 
GeneralRe: C# Network... Need Suggestions. Pin
Blake Coverett25-Oct-03 23:02
Blake Coverett25-Oct-03 23:02 
GeneralRe: C# Network... Need Suggestions. Pin
fadee25-Oct-03 23:30
fadee25-Oct-03 23:30 
GeneralRe: C# Network... Need Suggestions. Pin
Blake Coverett26-Oct-03 0:19
Blake Coverett26-Oct-03 0:19 
GeneralRe: C# Network... Need Suggestions. Pin
Blake Coverett26-Oct-03 2:05
Blake Coverett26-Oct-03 2:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.