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);
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.