How do I take a birthdate entered by a user and turn into milliseconds so that I can calculate how old they would be on a different planet
Here is the code I have so far:
DateFormat df = new SimpleDateFormat("MM dd yyyy");
Date dateBirth = df.parse(birthdate);
Calendar calBirth = new GregorianCalendar();
calBirth.setTime(dateBirth);
Edit 1: Yes I'm looking to get the milliseconds between the user's birthdate and the current time in order to divide that by a planet's days in a year