Skip to content

[Windows]Fix Dot based Date Format property in DatePicker not working on Windows #29058

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 23, 2025

Conversation

devanathan-vaithiyanathan
Copy link
Contributor

@devanathan-vaithiyanathan devanathan-vaithiyanathan commented Apr 17, 2025

Issue Details

When using a dot-based format (e.g., dd.MM.yyyy) in DatePicker, only the day is shown. The issue occurs because the separator is not correctly detected, resulting in an empty string.

Description of Change

Added a condition to check for . in the format string and assign it as the separator to ensure the full date (day, month, year) is displayed correctly.

Issues Fixed

Fixes #10805

Tested the behavior in the following platforms.

  • Android
  • Windows
  • iOS
  • Mac

Output Screenshot

Before After
Windows
Before.mp4
Windows
After.mp4

@dotnet-policy-service dotnet-policy-service bot added community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration labels Apr 17, 2025
@devanathan-vaithiyanathan devanathan-vaithiyanathan changed the title [Windows] Dot based Date Format property in DatePicker not working on Windows [Windows]Fix Dot based Date Format property in DatePicker not working on Windows Apr 17, 2025
@jsuarezruiz
Copy link
Contributor

/azp run MAUI-UITests-public

@@ -0,0 +1,23 @@
#if TEST_FAILS_ON_CATALYST //The Format property is not supported on the Mac platform; it always displays the default format.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have a related open issue? if exists, could you include the link to the issue here? And if not, could you create a new one?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jsuarezruiz , I have created a new issue report and added a comment

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@devanathan-vaithiyanathan devanathan-vaithiyanathan marked this pull request as ready for review April 21, 2025 11:32
@devanathan-vaithiyanathan devanathan-vaithiyanathan requested a review from a team as a code owner April 21, 2025 11:32
@jsuarezruiz
Copy link
Contributor

/azp run MAUI-UITests-public

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@PureWeen PureWeen changed the base branch from main to inflight/current April 23, 2025 18:13
@PureWeen PureWeen merged commit f2fe2e6 into dotnet:inflight/current Apr 23, 2025
78 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-datetimepicker DatePicker, TimePicker community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration platform/windows 🪟
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Date Format property in DatePicker not working on Windows with date Format
3 participants