//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)
//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)