Trying to turn off ordering on certain days and times JS

Can anyone please give me some advice on how to remove add to basket button on specific days and times I have a food business in the uk that only delivers on specific dates and times. I tried this but it didn’t work.

/* On Sundays, show an alert box 'We are closed' */
/* 0=Sun ... 6=Sat */

<script>
$(document).ready(
	function() 
  {
    if (new Date().getDay() == 0,1,2) { 
    	$('#we-are-closed-card').show();
    } 
	}
)
</script>

/* On Sundays, hide the order buttons to disable ordering */
<script>
$(document).ready(
	function() 
  {
    if (new Date().getDay() == 0,1,2) { 
    	$('.add-button').hide()
    } 
	}
)
</script>

Thank you in advance