Closed GoogleCodeExporter closed 8 years ago
r543 change the ETA sorting.
But the date format is the system builtin dateformat.
Original comment by elso.and...@gmail.com
on 5 Mar 2010 at 2:23
Globalization (i18n + L10n in MS speak)
I think it's a matter of getting the current culture from the system and then
the
ToString() method will have a different format.
Good example:
http://msdn.microsoft.com/en-us/library/5hh873ya.aspx
Better example from http://msdn.microsoft.com/en-us/library/k494fzbf.aspx:
using System;
using System.Globalization;
using System.Threading;
public class DateToStringExample
{
public static void Main()
{
CultureInfo currentCulture = Thread.CurrentThread.CurrentCulture;
DateTime exampleDate = new DateTime(2008, 5, 1, 18, 32, 6);
// Display the date using the current (en-US) culture.
Console.WriteLine(exampleDate.ToString());
// Change the current culture to fr-FR and display the date.
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("fr-
FR");
Console.WriteLine(exampleDate.ToString());
// Change the current culture to ja-JP and display the date.
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("ja-
JP");
Console.WriteLine(exampleDate.ToString());
// Restore the original culture
Thread.CurrentThread.CurrentCulture = currentCulture;
}
}
// The example displays the following output to the console:
// 5/1/2008 6:32:06 PM
// 01/05/2008 18:32:06
// 2008/05/01 18:32:06
Original comment by tbea...@gmail.com
on 7 Mar 2010 at 3:27
Original comment by elso.and...@gmail.com
on 14 Jun 2010 at 1:18
Original issue reported on code.google.com by
tbea...@gmail.com
on 5 Mar 2010 at 10:39Attachments: