function getAge(d1, d2){
d2 = d2 || new Date();
var diff = d2.getTime() - d1.getTime();
return Math.floor(diff / (1000 * 60 * 60 * 24 * 365.25));
}
alert(getAge(new Date(1988, 10, 19)));
शुक्रवार, 12 नवंबर 2021
Tags
About तथागत study
alistarbot is a blogger resources site is a provider of high quality blogger template with premium looking layout and robust design. The main mission of templatesyard is to provide the best quality blogger templates.
सदस्यता लें
टिप्पणियाँ भेजें (Atom)

कोई टिप्पणी नहीं:
एक टिप्पणी भेजें