We help IT Professionals succeed at work.

Compute age Html

Whing Dela Cruz
on
145 Views
Last Modified: 2017-04-09
Hi experts, how to compute the age using Js?

<script>
function sAge()
{
var sDate = "Friday, February 14, 1975"
var s = Now;
age = (sdate - s)
alert(age)
}
</script> 

Open in new window

Comment
Watch Question

CERTIFIED EXPERT
Distinguished Expert 2017
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
Its working perfectly sir, Thank you once again!