Click here to Skip to main content
15,913,854 members
Home / Discussions / C#
   

C#

 
QuestionHide taskbar and change DPI settings?? Pin
r913-Jun-04 23:47
r913-Jun-04 23:47 
AnswerRe: Hide taskbar and change DPI settings?? Pin
Dave Kreskowiak14-Jun-04 3:47
mveDave Kreskowiak14-Jun-04 3:47 
GeneralRe: Hide taskbar and change DPI settings?? Pin
Heath Stewart14-Jun-04 4:16
protectorHeath Stewart14-Jun-04 4:16 
GeneralRe: Hide taskbar and change DPI settings?? Pin
r914-Jun-04 6:55
r914-Jun-04 6:55 
GeneralRe: Hide taskbar and change DPI settings?? Pin
Heath Stewart14-Jun-04 8:43
protectorHeath Stewart14-Jun-04 8:43 
GeneralDate time format Pin
Member 445055113-Jun-04 23:46
Member 445055113-Jun-04 23:46 
GeneralRe: Date time format Pin
Stefan Troschuetz14-Jun-04 1:12
Stefan Troschuetz14-Jun-04 1:12 
GeneralRe: Date time format Pin
Heath Stewart14-Jun-04 4:12
protectorHeath Stewart14-Jun-04 4:12 
There are already methods to do this for you, including ToShortDateString and ToLongTimeString, which are functionally equivalent to ToString("d", null) and ToString("T", null), respectively.

If you look at DateTime.ToString, it shows you the format codes that are possible with the DateTime. For instance, using the format specifiers "d" and "T" will get you the date part in the dd/mm/yyyy format, and the time part in (hh:mm:ss) format, respectively. You should use these format specifiers instead of custom formatting when possible (and it is in your case) because diffirent cultures may format date and time parts differently, and using the pre-defined formats will take that into account when formatting.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Date time format Pin
Jon Sagara14-Jun-04 8:02
Jon Sagara14-Jun-04 8:02 
GeneralRe: Date time format Pin
Dave Kreskowiak14-Jun-04 8:07
mveDave Kreskowiak14-Jun-04 8:07 
GeneralRe: Date time format Pin
Jon Sagara14-Jun-04 8:08
Jon Sagara14-Jun-04 8:08 
GeneralRe: Date time format Pin
Dave Kreskowiak14-Jun-04 9:00
mveDave Kreskowiak14-Jun-04 9:00 
GeneralCheckListBox - how to find out which items are checked Pin
tjawed13-Jun-04 23:36
tjawed13-Jun-04 23:36 
GeneralRe: CheckListBox - how to find out which items are checked Pin
Heath Stewart14-Jun-04 4:07
protectorHeath Stewart14-Jun-04 4:07 
Generalon c# delegates Pin
Asim N.13-Jun-04 23:14
Asim N.13-Jun-04 23:14 
GeneralRe: on c# delegates Pin
Serge Lobko-Lobanovsky14-Jun-04 2:11
Serge Lobko-Lobanovsky14-Jun-04 2:11 
GeneralRe: on c# delegates Pin
Heath Stewart14-Jun-04 4:05
protectorHeath Stewart14-Jun-04 4:05 
GeneralProblem with System namespace Pin
Azghar Hussain13-Jun-04 22:25
professionalAzghar Hussain13-Jun-04 22:25 
GeneralRe: Problem with System namespace Pin
Stefan Troschuetz13-Jun-04 22:32
Stefan Troschuetz13-Jun-04 22:32 
GeneralTreeView with Backgroung Image Pin
yonitgil13-Jun-04 22:14
yonitgil13-Jun-04 22:14 
GeneralRe: TreeView with Backgroung Image Pin
Heath Stewart14-Jun-04 4:01
protectorHeath Stewart14-Jun-04 4:01 
GeneralCan't use System.Version in webservice method Pin
Jan R Hansen13-Jun-04 21:37
Jan R Hansen13-Jun-04 21:37 
GeneralRe: Can't use System.Version in webservice method Pin
Heath Stewart14-Jun-04 3:51
protectorHeath Stewart14-Jun-04 3:51 
GeneralRe: Can't use System.Version in webservice method Pin
Jan R Hansen14-Jun-04 4:35
Jan R Hansen14-Jun-04 4:35 
GeneralRe: Can't use System.Version in webservice method Pin
Heath Stewart14-Jun-04 4:44
protectorHeath Stewart14-Jun-04 4:44 

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.