Hello all, I'm in the process of working on a program for my Java programming class. Its done, but I wanted to add another feature to it. Right now, it calculates your age based on the year you were born. I wanted to add the feature that it also looks at the month, then the date it is currently to figure out your age.
For example, lets say you were born 11/12/1985. Right now, it only cares about 1985 and thinks your age is 29. Even though, your birthday hasn't come yet.
I wanted to figure out a way to use the rest of that date to tell your age. Trouble is, I'm not sure where to start for that. Is there a way to import the current date from your computer to the program? Do you have to put the date in manually?
Is there a standard way of making this calculation?