Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var dob = new Date("mm/dd/yyyy");
- var month_diff = Date.now() - dob.getTime();
- var age_dt = new Date(month_diff);
- var year = age_dt.getUTCFullYear();
- var age = Math.abs(year - 1970);
- let result = + age;
- result
- //Insert date numbers in proper format above in line one.
- //This script is meant to be used within an automation tool like TextExpander.
Add Comment
Please, Sign In to add comment