The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I have a DateTime property on my model, but I want it to display date only and only allow the date to be selected on the control. I couldn't find a way to do this with the ejDatePicker.
KRKeerthana Rajendran Syncfusion Team November 6, 2020 12:00 PM UTC
Hi Brad,
Thanks for contacting Syncfusion support.
Based on your update, we suspect that you need to display the selected date alone in ejDatePicker without month and year. If so , then you can set the dateFormat as “dd” as shown below
$("#datepick").ejDatePicker({value: new Date(),dateFormat: "dd" });
If we have misunderstood your requirement, kindly share us some clear details on your requirement to assist you promptly.
Regards,
Keerthana.
BSBrad ShannonNovember 6, 2020 12:45 PM UTC
No, I need to show the date as MM/dd/yyyy. The problem is that the datepicker is showing the time selector as well. I don't want to display the time selector. The property type on the .NET side is DateTime.
MKMuthukrishnan Kandasamy Syncfusion Team November 9, 2020 08:56 AM UTC
Hi Brad,
Thanks for the update.
We were unable to predict your requirement with your provided information. We suspect that you are using DateTimePicker component instead of using DatePicker component. Because, we have not provided time selector for DatePicker component. In EJ DatePicker, even if you assign the date with time, it will only not consider the given time for any date, time will always remain as 00:00. Please refer to the below documentations and demos to know more about DatePicker and DateTimePicker component.