DatePicker does not respect valid date format when using dd.MM.yyyy

Hello,


pls allow dates to be entered as d.M.yyyy rather than requiring leading zeros for day and month.




15.9.2021 shall be the same as 15.09.2021




Regards,


Pavel Weiss


Attachment: datepicker_suspect_date_c7aeea85.zip

1 Reply

DR Deepak Ramakrishnan Syncfusion Team November 3, 2021 12:00 PM UTC

Hi Pavel, 
 
Greetings from Syncfusion support. 
 
Yes we can set customized applicable formats using ‘Format’ property as like below highlighted code . Also we have attached sample for your reference. 
 
[Index.razor] 
@using Syncfusion.Blazor.Calendars 
 
<SfDatePicker TValue="DateTime?" Format="@format"></SfDatePicker> 
 
 
 
@code{ 
    public string format { get; set; } = "d.M.yyyy"; 
 
} 
 
 
 
 
 
Also you can refer the below UG documentation and online demo for more details  
 
 
 
 
Thanks, 
Deepak R. 
 


Loader.
Up arrow icon