Possible Duplicate:
Calculate age in JavaScript
Suppose I have a string of the form Apr 1928
, and I want to get the age of this person (84
in this case). It's okay if I'm one year off in the special case where the current month is that one and it's unclear which day they were born. What would be the simplest, most elegant way to get the person's age?