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
$(function(){ $('.datepicker').datepicker({ format: 'mm-dd-yyyy', onRender:function(date){ return date.valueOf() > FromEndDate.valueOf()?'disabled':''; } }); });