Click here to Skip to main content
16,004,924 members
Home / Discussions / C#
   

C#

 
QuestionDateTime.Now.ToLongDateString() Pin
Member 387988128-Jul-10 1:07
Member 387988128-Jul-10 1:07 
AnswerRe: DateTime.Now.ToLongDateString() Pin
OriginalGriff28-Jul-10 1:24
mveOriginalGriff28-Jul-10 1:24 
GeneralRe: DateTime.Now.ToLongDateString() Pin
Member 387988128-Jul-10 1:46
Member 387988128-Jul-10 1:46 
GeneralRe: DateTime.Now.ToLongDateString() Pin
OriginalGriff28-Jul-10 1:53
mveOriginalGriff28-Jul-10 1:53 
GeneralRe: DateTime.Now.ToLongDateString() Pin
Member 387988128-Jul-10 1:58
Member 387988128-Jul-10 1:58 
GeneralRe: DateTime.Now.ToLongDateString() Pin
Dave Kreskowiak28-Jul-10 3:30
mveDave Kreskowiak28-Jul-10 3:30 
GeneralRe: DateTime.Now.ToLongDateString() Pin
Dave Kreskowiak28-Jul-10 3:29
mveDave Kreskowiak28-Jul-10 3:29 
AnswerRe: DateTime.Now.ToLongDateString() Pin
Luc Pattyn28-Jul-10 2:36
sitebuilderLuc Pattyn28-Jul-10 2:36 
there is a Control Panel often called Regional Settings where each PC user chooses the way dates, times, currencies, etc. are shown by default. For user interaction your app can (and should) choose to use those default settings (that is when you use those specialized methods such as ToLongDateString(), they really mean "take whatever format the user has chosen"). The advantage is the user gets what he prefers, the disadvantage is you cannot predict how wide things will be and the screenshots in your manual may slightly differ from the user's reality.

Of course, there also are situations where the format must be fixed, e.g. when writing the date to a file that is going to be used on some other system. That is where you should use ToString() and either pass an explicit formatting string or have your thread's CultureInfo fixed.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


Questionincrease the font size of the text and size of the controls, when click on maximize button Pin
NarVish28-Jul-10 0:12
NarVish28-Jul-10 0:12 
AnswerRe: increase the font size of the text and size of the controls, when click on maximize button Pin
Łukasz Nowakowski28-Jul-10 0:35
Łukasz Nowakowski28-Jul-10 0:35 
AnswerRe: increase the font size of the text and size of the controls, when click on maximize button Pin
Nuri Ismail28-Jul-10 0:41
Nuri Ismail28-Jul-10 0:41 
GeneralRe: increase the font size of the text and size of the controls, when click on maximize button Pin
NarVish28-Jul-10 2:23
NarVish28-Jul-10 2:23 
GeneralRe: increase the font size of the text and size of the controls, when click on maximize button Pin
Nuri Ismail28-Jul-10 3:10
Nuri Ismail28-Jul-10 3:10 
QuestionGenerate Text File Pin
tek 200927-Jul-10 22:41
tek 200927-Jul-10 22:41 
AnswerRe: Generate Text File Pin
OriginalGriff27-Jul-10 22:52
mveOriginalGriff27-Jul-10 22:52 
GeneralRe: Generate Text File Pin
tek 200927-Jul-10 23:16
tek 200927-Jul-10 23:16 
GeneralRe: Generate Text File Pin
Pete O'Hanlon27-Jul-10 23:22
mvePete O'Hanlon27-Jul-10 23:22 
AnswerRe: Generate Text File Pin
tek 200927-Jul-10 23:36
tek 200927-Jul-10 23:36 
GeneralRe: Generate Text File Pin
OriginalGriff27-Jul-10 23:28
mveOriginalGriff27-Jul-10 23:28 
AnswerRe: Generate Text File Pin
tek 200928-Jul-10 0:15
tek 200928-Jul-10 0:15 
GeneralRe: Generate Text File Pin
OriginalGriff28-Jul-10 0:20
mveOriginalGriff28-Jul-10 0:20 
AnswerRe: Generate Text File Pin
Peace ON27-Jul-10 22:53
Peace ON27-Jul-10 22:53 
QuestionWhy cant I access my forms design Pin
TSWatson27-Jul-10 22:27
TSWatson27-Jul-10 22:27 
AnswerRe: Why cant I access my forms design Pin
Khaniya28-Jul-10 0:30
professionalKhaniya28-Jul-10 0:30 
Questionhow to convert google guage chart in pdf format.. Pin
Nagendra Pal27-Jul-10 21:34
Nagendra Pal27-Jul-10 21:34 

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.