»
EnglishFrenchVietnamese

Print - Days Old - JavaScriptBank.com

Full version: jsB@nk » Calculation » Days Old
URL: https://www.javascriptbank.com/days-old.html

Days Old © JavaScriptBank.comHow long have you had that job? How many days old are you? Find the answers to these questions and more!

Full version: jsB@nk » Calculation » Days Old
URL: https://www.javascriptbank.com/days-old.html



HTML
<SCRIPT LANGUAGE="JavaScript">var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");function countup(yr,m,d) {var today=new Date();var todayy=today.getYear();if ((navigator.appName == "Microsoft Internet Explorer") && (todayy < 2000))todayy="19" + todayy;if (navigator.appName == "Netscape")todayy=1900 + todayy;var todaym=today.getMonth();var todayd=today.getDate();var todaystring=montharray[todaym]+" "+todayd+", "+todayy;var paststring=montharray[m-1]+" "+d+", "+yr;var difference=(Math.round((Date.parse(todaystring)-Date.parse(paststring))/(24*60*60*1000))*1);document.write("<b>JavaScriptBank.com was created " + difference + " days ago.</b>");}countup(2004,04,30);  // Date in format:  (year,month,day)</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->