How best to get the time separator?

JohnHardmanJohnHardman GBUniversity mod

I want to identify the separator used between hours, minutes and seconds, to assist in making my app work as expected in different locales.

I was hoping that System.Globalization.DateTimeFormatInfo.TimeSeparator would be available, but it appears not.

Is there a method available for getting the separator across platforms in Xamarin.Forms, or will I have to use CultureInfo.DateTimeFormat (any of LongTimePattern, ShortTimePattern, or RFC1123Pattern) and do some parsing of the pattern that is returned?

Best Answer

Answers

Sign In or Register to comment.