material-components / material-components/material-components-android

[MaterialDatePicker] Ability to change header date formatting

Open
#1,969 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request Widget: DatePicker
Dominant language
Java
Stars
17.4k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

Feature request, ability to change date formatting of header section where the date is displayed.

What I'm actually looking to use is the format that is shown on [material design](https://material.io/components/date-pickers#anatomy). The design I get though is mmm d, yyyy. This is for a single date.

A solution I'd like is either the ability to choose from a pre-selected set of date formats, or the ability to throw my own formatter in there.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at MaterialDatePicker and trace the header section that renders the selected single date. Compare its output with the linked Material Design date-picker example, then determine how a configurable formatter or supported format choices would affect that header; done means the requested date format can be selected and is displayed correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.