Incorrect format

Hello,
According to your documents for DatePicker component default format should be the local format.
"By default, the DatePicker’s format is based on the culture."

Please check the attachment. You can see three files. 
1. DatePicker
2. DateTimePicker
3. Computer Date Time

As you can see datetimepicker shows correct but DatePicker doesn't. 

 PROBLEM: <SfDatePicker TValue="DateTime" Placeholder="Document Date" @bind-Value="_dto.DocumentDate" FloatLabelType="FloatLabelType.Auto"></SfDatePicker>

WORKING:  <SfDateTimePicker TValue="DateTime" Placeholder="Document Date" @bind-Value="_dto.DocumentDate" FloatLabelType="FloatLabelType.Auto"></SfDateTimePicker>


Attachment: DatePicker_a9c0d84d.rar

3 Replies 1 reply marked as answer

PM Ponmani Murugaiyan Syncfusion Team June 4, 2020 02:42 PM UTC

Hi Özgür,  

Greetings from Syncfusion support. 

We have validated your reported query. We would like to inform you that, If the format property is not specified in the DatePicker control, the default c# date format of application culture will be set. The default culture is en-US and it is respective format for M/d/yyy is set in the application. In order to use different format for your application, we suggest you to use the format property to get rid of the reported issue. Please find the format API reference below  


Regards,  
Ponmani M 


Marked as answer

ÖA Özgür ALTUNSÖGÜT June 4, 2020 04:57 PM UTC

Hello,
It’s diffucult to understand the reason behind why datetimepicker works as aspected which means works based on user calture but date picker doesn’t. 
Regards. 


PM Ponmani Murugaiyan Syncfusion Team June 5, 2020 07:34 AM UTC

Hi Özgür,  

Currently, Calendar, DatePicker and TimePicker Components are Hybrid component, so if the format property is not specified in the DatePicker control, the default c# date format of application culture will be set. But, DateTimePicker and DateRangePicker component are non-Hybrid Components, So it works based on System datetime. This is the difference, for the two controls behaves differently. 

Regards,  
Ponmani M

Loader.
Up arrow icon