Sorry, I should have been a little more clear...
When I use, for example, DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ss"); when the operating system is set to another culture (in this example, Italian), .NET converts that formatting to the locale-specific format, and I get the time using dots instead of colons: "yyyy-MM-ddTHH.mm.ss".
Now note that I did not specify that I wanted the formatting to be using the en-US culture info.
But I also noticed that .ToString("s"), even when in the Italian culture, properly gives me the colons in the time formatting. This is essential for working with XML to avoid schema validation errors.
So my question is whether using "s", no matter what culutre the operating system is set to, will ALWAYS give the same formatting: "yyyy-MM-ddTHH:mm:ss"?
I want to be sure there's not some corner case where it will ever NOT give that same identical formattng.
--
Greg Collins [Microsoft MVP]
Visit Brain Trove (
http://www.BrainTrove.com )