Ideas & Bugs

Setting for start of the week in date picker.

Hello,

I've noticed after the redesign that when selecting a date, the weekdays of the calendar start on Monday. Is there a way to change this?

Can this be added to the app? I'd very much prefer the week start with Sunday. In apps like Google Calendar, this is a choice.

I found a random bit of code that may or may not have anything to do with it:

You have to set the first day of week manually, for example in onCreate()/onCreateView() of your activity/fragment:

date = (DatePicker) value.findViewById(R.id.date);
if (Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB_MR1) {
date.setSpinnersShown(false);
date.setCalendarViewShown(true);
date.getCalendarView().setFirstDayOfWeek(Calendar.getInstance().getFirstDayOfWeek());
}

The example above uses default locale (Calendar.getInstance() actually does), however you can specify the day manually:

date.getCalendarView().setFirstDayOfWeek(Calendar.MONDAY);

https://stackoverflow.com/questions/13631244/set-first-day-of-week-in-datepicker-to-monday

Thanks.

3 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Anonymous shared this idea  ·   ·  Admin →
    completed  ·  RenzoAdminRenzo (Developer, Bitfire Development) responded  · 

    Thank you for contacting us!

    I added the option to pick the first day of the week, you can find it under UI Settings.

    This option will be available on version 327 and up.

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base