I want to restrict the date picker of bootstrap from taking future date.I just want to enable the dates up to today only.How can i achieve this.
Here is my code
Try this:
var date=new Date(); $('#datetimepicker').datetimepicker({ format: 'MM/dd/yyyy', language: 'en', startDate : new Date('2015-01-01'), endDate : date });