/* This script and many more are available free online at The JavaScript Source :: http://javascript.internet.com Created by: Doc JavaScript :: http://www.webreference.com/js/tips/991021.html */ function findDay() { var ar = new Array(); ar[0] = "Sunday"; ar[1] = "Monday"; ar[2] = "Tuesday"; ar[3] = "Wednesday"; ar[4] = "Thursday"; ar[5] = "Friday"; ar[6] = "Saturday"; var yourDay =prompt("Enter your Birthday Using the Format Below", "January 3, 1978") var birthDay = new Date(yourDay); var day = birthDay.getDay(); alert("You were born on " + ar[day]); }