Unity's implementation of DateTime doesn't seem to respect culture

I am trying to use DateTime but it seems to ignore the culture setting of the machine or device it is running on. I am in Australia and both my iPad and Mac are set to Day/Month/Year but when ever I try and make a string from the date I get it in American style Month/Day/Year. It goes wrong on the iPad and the Mac. Here is the code I use:

DateTime Date = new DateTime(2015, 1, 25);
string DateAsString = Date.ToShortDateString();
Debug.Log(DateAsString);

Yeah, am pretty sure that the .Net support we have is so old that it doesn’t have this kind of feature.

It works if you set the culture yourself.

Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-AU");

–Eric

Hi Eric that only works on the desktop. On IOS it throws an exception. My bodge is to let the user set his date format form a drop down list, then I use ToString to format the date in one of 2 ways, American or UK style. Meanwhile DateTime in unity is definitely broken and not working correctly on all platforms.

Is there any way to format the date/time according to the settings of the device?
My local setting for dates is: DD-MM-YYYY.
I tried this:

  1. DateTime.Now.ToShortDateString(), which results in: MM/DD/YYYY, so not correct.
  2. DateTime.Now.ToLongDateString() and that gives me: Wednesday, 08 June 2016. So now the order is correct, but not the language is not.
    Any suggestions?