Search Knowledge Base by Keyword
Disable Specific dates in datepicker field
This article belongs to our plugin : WooCommerce Easy Checkout Field Editor
Create one text field and note down the field key for example our field key is billing_field_962
Then you will need to insert custom js code on your site. You can use below given plugin.
Use below given js code. Make sure to run it only on frontend.
jQuery(document).ready(function( $ ){ //you need to replace billing_field_962 with your field key $('#billing_field_962 ').datetimepicker({ timepicker:false, formatDate:'d.m.Y', disabledDates: ['26.08.2022','31.08.2022'] }); });
Make sure to replace billing_field_962 with your field key and make sure your disabled dates and formatedate is same.