Exclude holidays for estimated delivery date

I am using this code to show estimated delivery dates for products. It works well, except it DOES NOT exclude holidays, like it is supposed to. Any ideas on what I did wrong?

{% if settings.dates_show %}

              

Estimated delivery dates (US orders only):

                 FREE shipping:  **-** 

              

Express shipping:  **-** 

{{ '//cdnjs.cloudflare.com/ajax/libs/moment.js/2.16.0/moment.min.js' | script_tag }}

{% endif %}

 

Hi @PWS1 ,

I checked and did you enter the holidays for it? For example, you want to count 12/03 and 13/03 as a holiday, you need to declare holidays as follows:

var holidays = ['2022-03-12', '2022-03-13'];

Hope it helps!

Thanks! yes, I forgot to add the ’ around the date.