Get exact age from datepicker?

Whilst I have you here, I don’t suppose you could help me with how to change the matching date to a database date field instead of ‘today’? (so they would need to be 18 on ‘x’ date)