Skip to content

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

@azure-pipelines
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

@azure-pipelines
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
github-actions bot pushed a commit that referenced this pull request Apr 28, 2025
… on Windows (#29058)

* fix added

* Test added

* namespace changes added

* modified the test

* Windows and iOS snap added

* Android snap added
PureWeen pushed a commit that referenced this pull request May 2, 2025
… on Windows (#29058)

* fix added

* Test added

* namespace changes added

* modified the test

* Windows and iOS snap added

* Android snap added
SuthiYuvaraj pushed a commit to SuthiYuvaraj/maui that referenced this pull request May 9, 2025
… on Windows (dotnet#29058)

* fix added

* Test added

* namespace changes added

* modified the test

* Windows and iOS snap added

* Android snap added
@github-actions github-actions bot locked and limited conversation to collaborators May 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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