Click here to Skip to main content
15,904,638 members
Home / Discussions / C#
   

C#

 
AnswerRe: Removing new lines from a string Pin
Kujtim Hyseni9-Sep-05 12:54
Kujtim Hyseni9-Sep-05 12:54 
AnswerRe: Removing new lines from a string Pin
Kujtim Hyseni9-Sep-05 12:58
Kujtim Hyseni9-Sep-05 12:58 
QuestionWant to display text vertically? Pin
...---...9-Sep-05 10:54
...---...9-Sep-05 10:54 
AnswerRe: Want to display text vertically? Pin
Kujtim Hyseni9-Sep-05 12:48
Kujtim Hyseni9-Sep-05 12:48 
AnswerRe: Want to display text vertically? Pin
Kujtim Hyseni9-Sep-05 12:54
Kujtim Hyseni9-Sep-05 12:54 
AnswerRe: Want to display text vertically? Pin
Mohamad Al Husseiny9-Sep-05 14:11
Mohamad Al Husseiny9-Sep-05 14:11 
GeneralRe: Want to display text vertically? Pin
Anonymous9-Sep-05 16:39
Anonymous9-Sep-05 16:39 
Questiondate format (UK) Pin
pedros739-Sep-05 9:52
pedros739-Sep-05 9:52 
I'm using the following so I can format all my dates relvant to the current culture of the OS. The app is for global use

private DateTimeFormatInfo dtFormatInfo;

this.dtFormatInfo = Thread.CurrentThread.CurrentUICulture.DateTimeFormat;

I have then created a property to format any dates in ShortDatePattern

public string ShortDateFmt
{
get
{
return this.dtFormatInfo.ShortDatePattern;
}
}

Every time I run my application and process a date it returns in the format mm\dd\yyyy when running on an OS with United Kingdom setup (en-GB). en-GB date format should be dd/mm/yyyy

I have even created the follwing property so as to debug and check the CurrentUICulture

public string CurrentUICultureName
{
get
{
return Thread.CurrentThread.CurrentUICulture.Name;
}
}

and this is returning en-GB.

Any suggestions as to why the date is not formatting for en-GB
AnswerRe: date format (UK) Pin
Guffa9-Sep-05 11:38
Guffa9-Sep-05 11:38 
QuestionXML deserializer question Pin
Tom Wright9-Sep-05 9:47
Tom Wright9-Sep-05 9:47 
AnswerRe: XML deserializer question Pin
Judah Gabriel Himango9-Sep-05 10:24
sponsorJudah Gabriel Himango9-Sep-05 10:24 
General[Message Deleted] Pin
Tom Wright9-Sep-05 11:34
Tom Wright9-Sep-05 11:34 
GeneralRe: [Msg Deleted] Pin
Judah Gabriel Himango9-Sep-05 11:39
sponsorJudah Gabriel Himango9-Sep-05 11:39 
GeneralRe: [Msg Deleted] Pin
Tom Wright9-Sep-05 11:56
Tom Wright9-Sep-05 11:56 
GeneralRe: [Msg Deleted] Pin
Judah Gabriel Himango9-Sep-05 19:17
sponsorJudah Gabriel Himango9-Sep-05 19:17 
GeneralRe: [Msg Deleted] Pin
Tom Wright9-Sep-05 12:17
Tom Wright9-Sep-05 12:17 
GeneralRe: [Msg Deleted] Pin
Judah Gabriel Himango9-Sep-05 19:17
sponsorJudah Gabriel Himango9-Sep-05 19:17 
GeneralRe: XML deserializer question Pin
Tom Wright9-Sep-05 11:42
Tom Wright9-Sep-05 11:42 
GeneralRe: XML deserializer question Pin
S. Senthil Kumar9-Sep-05 22:44
S. Senthil Kumar9-Sep-05 22:44 
GeneralRe: XML deserializer question Pin
Tom Wright10-Sep-05 4:48
Tom Wright10-Sep-05 4:48 
QuestionGenerics and pointers Pin
kippolito9-Sep-05 9:46
kippolito9-Sep-05 9:46 
AnswerRe: Generics and pointers Pin
Judah Gabriel Himango9-Sep-05 10:23
sponsorJudah Gabriel Himango9-Sep-05 10:23 
Questionstatusbar Pin
xilefxilef9-Sep-05 7:59
xilefxilef9-Sep-05 7:59 
AnswerRe: statusbar Pin
miah alom9-Sep-05 8:05
miah alom9-Sep-05 8:05 
GeneralRe: statusbar Pin
xilefxilef9-Sep-05 8:11
xilefxilef9-Sep-05 8:11 

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.