Date minus 18 years in java?

Associate
Joined
21 May 2003
Posts
1,008
HI. i'm trying to check an inputted date in java that the user is older than 18 years old.

In SQL I've made the default value -18 years by using:
$x_date = strftime ("%d/%m/%Y", strtotime("-18 years"))

how do i do this in java?
 
Back
Top Bottom