Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7428597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:49:41+00:00 2026-05-29T08:49:41+00:00

In my app I should set a label with a date (today), but the

  • 0

In my app I should set a label with a date (today), but the problem is that format date change in some countries; then I want to know waht’s the way to obtain information about device language or other information that say me that device is used in usa or france or italy or exc…
can you help me?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T08:49:42+00:00Added an answer on May 29, 2026 at 8:49 am

    Try dateFormatFromTemplate:options:locale: in NSDateFormatter

    Returns a localized date format string representing the given date
    format components arranged appropriately for the specified locale.

    For example, you can specify a template like “MMMM D, YYYY” and it will change the order of the terms for the locale that you specify.

    UPDATE

    If you want to know the language and the region, then you should try using this:

    [NSLocale preferredLanguages] objectAtIndex:0] 
    

    for the current language. (Languages are coded and in the order of most recently used first.)

    [NSLocale currentLocale] localeIdentifier] 
    

    for the region. Locale identifiers are coded (like it_IT for Italy). For a complete list of coded locales, use [NSLocale availableLocaleIdentifiers]

    See the documentation for NSLocale to find out more about language and location.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing an iPhone-App that should run not only on new iphones, but
I have some data (Student info), and my app should be able to read
I'm working on the app which should download some data form server (done) and
I'm writing a little desktop app that should be able to encrypt a data
I'm building an Open Graph App that should be able to publish, retrieve, and
I have a custom label in a winform app. I change the content of
For performance reasons an MVC app should have compilation debug='false' set in its web.config.
My app should render html, to answer when a user clicks ajax-link. My controller:
I'm trying to figure out how my new app should handle data. In previous
In my Android app I should store the data from user in simple text-file,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.