I've tried multiple approaches, this is one of them:
System.Globalization.DateTimeFormatInfo format = System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat;
return dt.Value.ToString (format.ShortTimePattern);
The problem with this one is that .NET 3.5 returns a "." as the time seperator which is most likely a bug (since my Norwegian locale uses a colon): .NET (3.5) formats times using dots instead of colons as TimeSeparator for it-IT culture?
I also looked here: Retrieving current local time on iPhone?
But MT doesn't seem to have setTimeStyle on the NSDateFormatter?
So, anyone have any magic tricks up their sleeves?
My goal is to output:
21:00 / 9:00 PM
10:09 / 10:09 AM
like the statusbar in iPhone.