logo

New Response

« Return to the main article

You are replying to:

    • avatar
    • dave
    • Posted on Wed 3 Dec 2003

    //Get the DOB theDate = new Date() theDay = theDate.getDate() if (theDay<10) { theDay="0"+theDay } theMonth = theDate.getMonth() if (theMonth<10) { theMonth="0"+theMonth } theYear = theDate.getFullYear() dateObj = (theDay + "/" +theMonth + "/" +theYear) var lDOB=prompt("Please enter their Date of Birth in format DD/MM/YYYY",dateObj)

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: