Click here to Skip to main content
15,897,187 members
Home / Discussions / C#
   

C#

 
AnswerRe: date format converter? Pin
Dmitriy Kostovetskiy3-Feb-04 15:59
Dmitriy Kostovetskiy3-Feb-04 15:59 
AnswerRe: date format converter? Pin
Heath Stewart3-Feb-04 20:07
protectorHeath Stewart3-Feb-04 20:07 
A better way is to use an IFormatProvider for the British CultureInfo. For example, String.Format can take an IFormatProvider as the first parameter. This could be the CultureInfo.NumberFormat for the CultureInfo for the English (Britain) culture. By default, such methods uses the Thread.CurrentCulture but as I've mentioned you can override this behavior by passing an IFormatProvider. This is the correct way, instead of assuming and managing custom format specifiers like the previous post mentioned.

For more information about localization and culture-specific formatting, see Developing World-Read Applications[^] in the .NET Framework SDK. With regard to your question, see Formatting Date and Time for a Specific Culture[^] under the previous topic.

 

Microsoft MVP, Visual C#
My Articles
GeneralHide Start Button Pin
johnstacey3-Feb-04 11:53
johnstacey3-Feb-04 11:53 
GeneralRe: Hide Start Button Pin
Heath Stewart3-Feb-04 19:58
protectorHeath Stewart3-Feb-04 19:58 
GeneralRe: Hide Start Button Pin
johnstacey4-Feb-04 4:59
johnstacey4-Feb-04 4:59 
GeneralRe: Hide Start Button Pin
Heath Stewart4-Feb-04 5:04
protectorHeath Stewart4-Feb-04 5:04 
Questionstatus bar from child forms? Pin
visiontec3-Feb-04 11:44
visiontec3-Feb-04 11:44 
AnswerRe: status bar from child forms? Pin
Heath Stewart3-Feb-04 20:02
protectorHeath Stewart3-Feb-04 20:02 
GeneralC# Pipes Pin
Anonymous3-Feb-04 9:42
Anonymous3-Feb-04 9:42 
GeneralRe: C# Pipes Pin
occcy4-Feb-04 0:18
occcy4-Feb-04 0:18 
GeneralRe: C# Pipes Pin
ronboy4-Feb-04 3:32
ronboy4-Feb-04 3:32 
GeneralRe: C# Pipes Pin
ronboy5-Feb-04 2:27
ronboy5-Feb-04 2:27 
GeneralEncrypting data not files... Pin
Manster3-Feb-04 6:07
Manster3-Feb-04 6:07 
GeneralRe: Encrypting data not files... Pin
Heath Stewart3-Feb-04 6:13
protectorHeath Stewart3-Feb-04 6:13 
QuestionNet framework needed?? Pin
Anonymous3-Feb-04 5:46
Anonymous3-Feb-04 5:46 
AnswerRe: Net framework needed?? Pin
Heath Stewart3-Feb-04 6:06
protectorHeath Stewart3-Feb-04 6:06 
AnswerRe: Net framework needed?? Pin
Judah Gabriel Himango3-Feb-04 6:08
sponsorJudah Gabriel Himango3-Feb-04 6:08 
GeneralRe: Net framework needed?? Pin
Anonymous3-Feb-04 6:43
Anonymous3-Feb-04 6:43 
GeneralRe: Net framework needed?? Pin
Heath Stewart3-Feb-04 8:55
protectorHeath Stewart3-Feb-04 8:55 
QuestionHow to draw X and Y axis? Pin
Member 18556083-Feb-04 3:06
Member 18556083-Feb-04 3:06 
AnswerRe: How to draw X and Y axis? Pin
Heath Stewart3-Feb-04 3:58
protectorHeath Stewart3-Feb-04 3:58 
GeneralRun .NET executable without the framework installed Pin
jvbragt3-Feb-04 2:51
jvbragt3-Feb-04 2:51 
GeneralRe: Run .NET executable without the framework installed Pin
Joel Lucsy3-Feb-04 2:53
Joel Lucsy3-Feb-04 2:53 
GeneralRe: Run .NET executable without the framework installed Pin
OmegaSupreme3-Feb-04 3:04
OmegaSupreme3-Feb-04 3:04 
GeneralRe: Run .NET executable without the framework installed Pin
Heath Stewart3-Feb-04 3:56
protectorHeath Stewart3-Feb-04 3:56 

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.