```
function myFunction(){
    var today = new Date();
    var month = today.getMonth()+1;
    var date = today.getDate();

    if (month=== 1 && date===1){
      window.location = "http://google.com";
    }
    if (month=== 1 && date===2){
      window.location = "http://google.com";
    }
    if (month===1 && date===9){
      window.location = "http://google.com";
    }
    if (month=== 2 && date===11){
      window.location = "http://google.com";
    }
    if (month=== 2 && date===23){
      window.location = "http://google.com";
    }
    if (month=== 3 && date===21){
      window.location = "http://google.com";
    }
    if (month=== 4 && date===29){
      window.location = "http://google.com";
    }
    if (month=== 5 && date===3){
      window.location = "http://google.com";
    }
    if (month===5 && date===4){
      window.location = "http://google.com";
    }
    if (month=== 5 && date===5){
      window.location = "http://google.com";
    }
    if (month=== 7 && date===17){
      window.location = "http://google.com";
    }
    if (month=== 8 && date===11){
      window.location = "http://google.com";
    }
    if (month=== 9 && date===18){
      window.location = "http://google.com";
    }
    if (month=== 9 && date===23){
      window.location = "http://google.com";
    }
    if (month=== 10 && date===9){
      window.location = "http://google.com";
    }
    if (month=== 11 && date===3){
      window.location = "http://google.com";
    }
    if (month=== 11 && date===23){
      window.location = "http://google.com";
    } else{
      window.location = "http://10.2.3.30:81";
  }
}

```

so basically i have tried to incorporate javascript in my simple practice html file where by when i press a button the program should verify where it matches with the dates(public holidays) given and if it does it should redirect to another website or else it should be able to access the server. But the problem is that if any of the dates fall on a weekend then the holiday is carried over to a the staring of the new week day. And also i want to know how to get date and month from the internet rather than the date of the device the html runs on. Please help(beginner here)