This free javascript helps you to know or find out what day you were born. You can find the day of the week you were born just by selecting your birthday.
Features
This javascript is used to find the day of the week you were born.
You can change the Month as you wish(January or Jan..)
Set the year in dropdown as you wish.
Preview
select your birthday and click on the button
Downloads
Javascript code
<!--Script by hscripts.com--> <!-- more scripts @ https://www.hscripts.com --> <script type="text/javascript"> // Set/Change the Year in the dropdown // Eg: var month=new array("January","February",..); var month = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); var startyear = "1950"; // Change the Starting year in your dropdown var endyear = "2013"; // Change the ending year in the dropdown function dayborn() { var month = document.bornday.birthmonth.options[document.bornday.birthmonth.selectedIndex].value; var day = document.bornday.birthday.options[document.bornday.birthday.selectedIndex].value; var year = document.bornday.birthyear.options[document.bornday.birthyear.selectedIndex].value; var birthday = new Date(year,month,day); var dayborn = birthday.getDay(); var weekday = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"); alert("You were born on a " + weekday[dayborn]); } </script> <form name="bornday"><div align="center"><center><table bgcolor="#ffffff" border="2" cellpadding="0" cellspacing="0"> <tr><td colspan="3" align="center"><font face="verdana, arial" size="-1">Enter your Birthdate </font></td></tr> <tr> <td align="center"><select name="birthmonth" size="1"><script language="javascript"> for(var i=0;i<month.length;i++) document.write("<option value="+i+">"+month[i]+"</option>");</script></select></td> <td align="center"> <select name="birthday" size="1"> <script language="javascript"> for(var j=1;j<32;j++) document.write("<option value="+j+">"+j+"</option>");</script></select></td> <td align="center"> <select name="birthyear" size="1"> <script language="javascript"> for(var k=endyear;k>startyear;k--) document.write("<option value="+k+">"+k+"</option>");</script></select></td></tr> <tr><td colspan="3" align="center"><font face="verdana, arial" size="-1"><a style="text-decoration:none" href="https://www.hscripts.com">hscripts.com</a> </font></td></tr></table></center></div><div align="center"><center><p><input value="Birthday" onclick="dayborn()" type="button"></p></center></div></form> <!-- Script by hscripts.com -->