I am using materialize datepicker for selecting start and end date in my application. In that, I am in need of allowing user to select only the start and end date of a quarter (Example: start date - March 31, 2016 and end date - June 30, 2016), otherwise an error message should be displayed. There is no restriction in the year selection.
Example: if user selects start date: June 2, 2015 and end date: Aug 4, 2015. In this case, I have to display an error message.
I have started trying this in following JSFiddle link, but I am unable to achieve this.
[JSFiddle][1]
[1]: http://jsfiddle.net/7ujbv2yz/12/