Compute for Age

Posted by Rollbase User on 06-Apr-2010 04:05

How do I compute for age based on a birthdate inputted by a user and the date today?

All Replies

Posted by Admin on 06-Apr-2010 09:35

var time = new Date() - new Date("{!input_date"});
return time/365/24/60/60;

This thread is closed