I have a datetimepicker -jqueryui, just wondering if is it possible for me to check if the date selected is a weekend or public holiday. If its a public holiday,can I have like a text file with a list of public holidays that it can cross check with.
I would like to have something like this.Attachment 15449
The from and to time is enabled with datetimepicker and the "hour difference between the from and to time" calculated will be entered into the overtime total hours. If the date selected is a normal day, it will send the value to the normal day textbox, if its a weekend, it will send the value to the rest day textbox and if its a public holiday, it will send the value to the public holiday text box.
Any idea or guidance.
Got that...how do I copy the value to the next textbox
how do i get the value to appear into the next textbox instead of using the alert message, this is my code
//var d = new Date();
var y = document.getElementById("TextBox2").value;
var x = new Date(document.getElementById("TextBox1").value);
y = x.getDay();
<form id="form1" runat="server">
<asp:TextBox ID="TextBox1" runat="server" value="03/16/2013"></asp:TextBox>
<button onclick="myFunction()">Try it</button>
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>