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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Month select

Thread ID:





143169 Mar 7,2019 08:40 AM UTC Mar 8,2019 04:27 AM UTC Angular - EJ 2 3
Tags: DatePicker
Manolo Capdevila
Asked On March 7, 2019 08:40 AM UTC

Is possible select only a year and month in datepicker?


Deepa Loganathan [Syncfusion]
Replied On 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. 

Manolo Capdevila
Replied On March 7, 2019 12:00 PM UTC


Deepa Loganathan [Syncfusion]
Replied On 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. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon