Returns age in human readable format.
age(dateStr)

dateStr | string or number, date in common format

The dateStr argument can be any standard date or Unix epoch, which is used to create JavaScript Date object. The age is returned either in seconds, minutes, hours, days, months or years.
For best cross browser compatibility you should define dateStr either as UNIX time or as full date and time with time zone in the following format: "2013/12/21 19:03:59 PST".
Here is an example how you can calculate age var a = w2utils.age('5/11/1977'); console.log(a);