dotnet / dotnet/maui

DatePicker Format Not Respected on macOS

Open
#29,099 2 comments 0 reactions 0 assignees View on GitHub
area-controls-datetimepicker platform/macos s/triaged s/verified t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

### Description

On macOS, the DatePicker control does not respect the Format property. Even when setting a custom format such as Format="dd/MM/yyyy" or Format="MM/dd/yyyy", the control continues to display the date using the system default format.

On other platforms such as Android, iOS, and Windows, the custom format is applied correctly and works as expected.

### Steps to Reproduce

1. [DatePickerFormatBug.zip](https://github.com/user-attachments/files/19832311/DatePickerFormatBug.zip) Run the attached sample on mac platform

### Link to public reproduction project repository

_No response_

### Version with bug

9.0.60 SR6

### Is this a regression from previous behavior?

No, this is something new

### Last version that worked well

Unknown/Other

### Affected platforms

macOS

### Affected platform versions

Mac 15.1

### Did you find any workaround?

_No response_

### Relevant log output

```shell

```

Contributor guide

Open the contributing guide

Research direction

Start by running the attached DatePickerFormatBug.zip sample on macOS 15.1 and compare the DatePicker behavior with Android, iOS, or Windows. Trace the macOS DatePicker implementation and its Format handling. Done means custom formats such as dd/MM/yyyy and MM/dd/yyyy are displayed on macOS as they are on the other platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, macos
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.