Month select

Is possible select only a year and month in datepicker?

Thanks

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> 
    </div> 
</div> 
 


We have prepared a sample for your reference. 


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


Regards,   
Deepa L. 



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

Thanks!


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. 
 
Regards,  
Deepa L. 


Loader.
Up arrow icon