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 6365381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:17:09+00:00 2026-05-25T00:17:09+00:00

I have been trying to get an answer to this question for quite a

  • 0

I have been trying to get an answer to this question for quite a while. I also had a look at the following link: Android – DatePicker Widget Format.
On my phone/ emulator (v 2.3.3) both the DatePicker widget and the dialog do not take the date format specified in settings (Settings->Date&Time->Select date format). They are always in the format “MM/dd/yyyy”. The locale is set to English UK.

I get “d/MM/yyyy” when I read the settings with:

Settings.System.getString(getContentResolver(), Settings.System.DATE_FORMAT);

Does anybody have an idea about how to change the date format in a DatePicker view?

  • 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-25T00:17:10+00:00Added an answer on May 25, 2026 at 12:17 am

    To override the DatePicker format the best bet would be to override one of its constructors with a slight edit to the original code. You can edit the ViewGroup in code for you but I’d seriously consider not doing it that way.

    1. Create class LocalizedDatePicker
    2. Override public DatePicker (Context context, AttributeSet attrs, int defStyle) http://developer.android.com/reference/android/widget/DatePicker.html#DatePicker(android.content.Context, android.util.AttributeSet, int)
    3. Copy the code from the original DatePicker constructor (you may need to select a different branch after some testing, I have linked the head)
    4. Override methods that call reorderSpinners() to remove that call.
    5. Replace line inflater.inflate(R.layout.date_picker, this, true); with inflater.inflate(my.package.R.layout.localized_date_picker, this, true);
    6. Copy the original date_picker.xml layout to your local resource localized_date_picker.xml
    7. Edit the file for the desired order, since you’re editing this please respect the localization of other places and keep a copy of the original in your global layout folder and put the localized_date_picker.xml in your region specific folder. Since the system’s layout is Month Day Year people in other places may expect that order.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good morning. I have been looking all over trying to answer this question. If
I have been trying to get this one section of my UI to immediatly
I have been trying to get this to work correctly and I think I
I have been trying to get a USB HID keyboard working on an Android
I have been trying to get this jsfiddle to work. So far without luck.
I have been trying to get the FTDI D2xx driver working with my Android
I have been trying to get up to speed on Named Pipes this week.
I know this question was answered, in C# and I have been trying to
I've been trying to find the answer to this question here. Several people seem
This may be a bit of a nooby question, I have been trying to

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.