Get only day from datepicker

Hi, I have a problem with datepicker. I want to get and display in datepicker ejs only Day. It is possible to set only day value in create view and get the same value in edit view in my form? Could you give me any examples how to do it please?

Regards

1 Reply

SP Sureshkumar P Syncfusion Team March 30, 2020 10:16 AM UTC

Hi Bartosz, 
 
Greetings from Syncfusion support. 
 
Based on your shared information we suspect that you want to render the datepicker component only in the month view. We suggest you to use our start and depth property to achieve your requirement.  
 
Kindly refer the below code example. 
@Html.EJS().DatePicker("datepicker").Value(DateTime.Now).Format("MMMM y").Start(Syncfusion.EJ2.Calendars.CalendarView.Month).Depth(Syncfusion.EJ2.Calendars.CalendarView.Month).Render() 
 
please check the above code and let us know whether it suits your requirement. if not please get revert us with below details  
1.     detailed information about your requirement with image or video demonstration  
2.     Also please share if you have used our datepicker component alone or inside any other component like grid or schedule.  
These details will help us to provide exact solution at earliest. 
 
Regards, 
Sureshkumar P 


Loader.
Up arrow icon