<script>methods:{customFormatter(date){returnmoment(date).format('MMMM Do YYYY, h:mm:ss a');}}</script><datepicker:format="customFormatter"></datepicker>
<script>var state ={disabledDates:{to:newDate(2016,0,5),// Disable all dates up to specific datefrom:newDate(2016,0,26),// Disable all dates after specific datedays:[6,0],// Disable Saturday's and Sunday'sdaysOfMonth:[29,30,31],// Disable 29th, 30th and 31st of each monthdates:[// Disable an array of datesnewDate(2016,9,16),newDate(2016,9,17),newDate(2016,9,18)],ranges:[{// Disable dates in given ranges (exclusive).from:newDate(2016,11,25),to:newDate(2016,11,30)},{from:newDate(2017,1,12),to:newDate(2017,2,25)}],// a custom function that returns true if the date is disabled// this can be used for wiring you own logic to disable a date if none// of the above conditions serve your purpose// this function should accept a date and return true if is disabledcustomPredictor:function(date){// disables the date if it is a multiple of 5if(date.getDate()%5==0){returntrue;}}}};</script><datepicker:disabled-dates="state.disabledDates"></datepicker>
<script>var state ={highlighted:{to:newDate(2016,0,5),// Highlight all dates up to specific datefrom:newDate(2016,0,26),// Highlight all dates after specific datedays:[6,0],// Highlight Saturday's and Sunday'sdaysOfMonth:[15,20,31],// Highlight 15th, 20th and 31st of each monthdates:[// Highlight an array of datesnewDate(2016,9,16),newDate(2016,9,17),newDate(2016,9,18)],// a custom function that returns true of the date is highlighted// this can be used for wiring you own logic to highlight a date if none// of the above conditions serve your purpose// this function should accept a date and return true if is highlightedcustomPredictor:function(date){// highlights the date if it is a multiple of 4if(date.getDate()%4==0){returntrue;}},includeDisabled:true// Highlight disabled dates}};</script><datepicker:highlighted="state.highlighted"></datepicker>