I am trying to setup the jQuery UI datepicker to have minDate of today and maxDate to at least 18 years; if they choose less than 18 years, it should throw an error:
$('#dateofbirth').datepicker({changeMonth:true,changeYear:true,
minDate: 0, maxDate: '-18Y'});