Click here to Skip to main content
15,921,660 members
Home / Discussions / C#
   

C#

 
Questionreport Pin
TAREQ F ABUZUHRI8-Sep-06 13:15
TAREQ F ABUZUHRI8-Sep-06 13:15 
AnswerRe: report Pin
CWIZO9-Sep-06 0:53
CWIZO9-Sep-06 0:53 
QuestionHandling the tab key in a datagridview Pin
Drew McGhie8-Sep-06 12:06
Drew McGhie8-Sep-06 12:06 
AnswerRe: Handling the tab key in a datagridview Pin
Nader Elshehabi8-Sep-06 13:17
Nader Elshehabi8-Sep-06 13:17 
QuestionWrite data to an xml file Pin
Yustme8-Sep-06 10:59
Yustme8-Sep-06 10:59 
AnswerRe: Write data to an xml file Pin
Nader Elshehabi8-Sep-06 11:14
Nader Elshehabi8-Sep-06 11:14 
AnswerRe: Write data to an xml file Pin
Guffa8-Sep-06 13:18
Guffa8-Sep-06 13:18 
GeneralRe: Write data to an xml file Pin
lmoelleb8-Sep-06 20:47
lmoelleb8-Sep-06 20:47 
Using daDate.ToString("HH:mm:ss") is a risky choice as ":" is a placeholder for the time separator. Hence for example Italian regional settings would give something like "21.17.48" instead of "21:17:48". Even in a fixed region users could simply break the format by changing their regional settings. Always provide a IFormatProvider, typically CultureInfo.InvarientCulture. If you create your own CultureInfo instance to do the formatting, remember specifying "false" to disallow custom overrides.

I assume this is a fixed XML format that MUST be followed? If it is I guess you do not have a choice, but if it is in ANY way possible to influence the format do so, as it is basically as wrong as it can be.

When storing dates as strings there are two formats you can use: "yyyy-MM-dd" or wrong. "ddMMyyyy" clearly belongs in the "wrong" category as it is ambigious and it doesn't even sort correctly. When storing date and time, preferably write them into a single entry with the ISO format.

If you use the XmlSerializer, just serialize/deserialize a DateTime object and it will use the correct ISO format.
AnswerRe: Write data to an xml file Pin
Guffa9-Sep-06 7:53
Guffa9-Sep-06 7:53 
AnswerRe: Write data to an xml file Pin
Arjun "Mjolnir" Bahree10-Sep-06 4:25
Arjun "Mjolnir" Bahree10-Sep-06 4:25 
QuestionBuffering Images Pin
Randomlick8-Sep-06 9:53
Randomlick8-Sep-06 9:53 
QuestionMax Number of Processes limit Pin
Subby Dev8-Sep-06 8:59
Subby Dev8-Sep-06 8:59 
Questionhow to create a System.data.datatabe from interop.excel.worksheet? Pin
qahwah8-Sep-06 7:54
qahwah8-Sep-06 7:54 
QuestionDigit To text Converter [modified] Pin
Syed Shahid Hussain8-Sep-06 6:50
Syed Shahid Hussain8-Sep-06 6:50 
AnswerRe: Digit To text Converter Pin
leppie8-Sep-06 7:11
leppie8-Sep-06 7:11 
GeneralRe: Digit To text Converter Pin
Syed Shahid Hussain8-Sep-06 8:09
Syed Shahid Hussain8-Sep-06 8:09 
GeneralRe: Digit To text Converter Pin
Syed Shahid Hussain8-Sep-06 9:12
Syed Shahid Hussain8-Sep-06 9:12 
GeneralRe: Digit To text Converter Pin
Nader Elshehabi8-Sep-06 9:18
Nader Elshehabi8-Sep-06 9:18 
AnswerRe: Digit To text Converter Pin
Nader Elshehabi8-Sep-06 9:54
Nader Elshehabi8-Sep-06 9:54 
GeneralRe: Digit To text Converter Pin
Syed Shahid Hussain9-Sep-06 5:56
Syed Shahid Hussain9-Sep-06 5:56 
JokeRe: Digit To text Converter Pin
Nader Elshehabi9-Sep-06 6:59
Nader Elshehabi9-Sep-06 6:59 
GeneralRe: Digit To text Converter Pin
Syed Shahid Hussain10-Sep-06 8:50
Syed Shahid Hussain10-Sep-06 8:50 
AnswerRe: Digit To text Converter Pin
Arjun "Mjolnir" Bahree10-Sep-06 4:31
Arjun "Mjolnir" Bahree10-Sep-06 4:31 
GeneralRe: Digit To text Converter Pin
Syed Shahid Hussain10-Sep-06 8:54
Syed Shahid Hussain10-Sep-06 8:54 
QuestionHow to convert string Pin
papa808-Sep-06 6:25
papa808-Sep-06 6:25 

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.