Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter x2creativos

    (@x2creativos)

    The problem that I did not see any code when selecting “Disable a specific set of dates” is because I was using version 15.5 of the Safari browser. I have tried with Firefox and it works fine.

    Thread Starter x2creativos

    (@x2creativos)

    Sorry, I’m not a Skype user. Also live support wouldn’t help much because I don’t speak English well. Spanish only.

    The thing is, I have the right code to disable every Monday:
    function (date) { var day = date.getDay(); return [(day != 0 && day != 1)]; }

    And I also have the right code to disable the week I want to disable:

    function (date) { 
    	var array = ["2022-06-27","2022-06-28","2022-06-29","2022-06-30","2022-07-01","2022-07-02","2022-07-03"]; 
    	var string = jQuery.datepicker.formatDate("yy-mm-dd", date); 
    	return [ array.indexOf(string) == -1 ];

    How do I merge these two codes into one to make it work?
    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)