We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Month select

Is possible select only a year and month in datepicker?


3 Replies

DL Deepa Loganathan Syncfusion Team March 7, 2019 09:21 AM UTC

Hi Manolo,  

Greetings from Syncfusion. 

Yes, you can use the Datepicker for Year and Month selection by setting the start and depth views of Datepicker calendar and date format to “MM/yyyy” as given in the below code.  

<div class="control-section"> 
    <div id="control_wrapper"> 
        <ejs-datepicker start="Year" format="MM/yyyy"  depth="Year"></ejs-datepicker> 

We have prepared a sample for your reference. 

Please check the below API page to know more about the configuration options available in Datepicker.  

Deepa L. 

MC Manolo Capdevila March 7, 2019 12:00 PM UTC


DL Deepa Loganathan Syncfusion Team March 8, 2019 04:27 AM UTC

Hi Manolo,  
Most welcome. We hope the solution provided was up to your requirement. 
Please let us know if you have any further queries. 
Deepa L. 

Live Chat Icon For mobile
Up arrow icon