{%Pragmatic Coding%} Tips and tricks for software developers.

20Dec/110

Set Locale with Date Formatter

In one of my projects I was confused if it is possible or not to sep up Locale for displaying a date time.

So, by default, the NSDateFormatter uses the locale set on the device, and there is no code specific locale changes are required if you want your app to display in the current locale.

But, what if you need to display a date in a locale other than the current setting on the device.

Here is a solution how to do that:

Share on social network

Share to Facebook
Share to Google Plus
Share to LiveJournal
Share to MyWorld
Share to Odnoklassniki
Share to Yandex
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

No trackbacks yet.