T
Tony Johansson
Hi!
I just wonder these two rows 1 and 2 below give identical output for those
culture that I have tested with.
So my first question is if rows 1 and 2 are the same ?
My second question is how is it possible that these two rows give identical
output when I pass in two completely different object ?
In the first example I pass in a CultureInfo
In the second example you pass in a DateTimeFormatInfo
1. Console.WriteLine(DateTime.Now.ToString("D", new CultureInfo("sv-fi")));
2. Console.WriteLine(DateTime.Now.ToString("D", new
CultureInfo("sv-FI").DateTimeFormat));
//Tony
I just wonder these two rows 1 and 2 below give identical output for those
culture that I have tested with.
So my first question is if rows 1 and 2 are the same ?
My second question is how is it possible that these two rows give identical
output when I pass in two completely different object ?
In the first example I pass in a CultureInfo
In the second example you pass in a DateTimeFormatInfo
1. Console.WriteLine(DateTime.Now.ToString("D", new CultureInfo("sv-fi")));
2. Console.WriteLine(DateTime.Now.ToString("D", new
CultureInfo("sv-FI").DateTimeFormat));
//Tony