Anno Societatis Calculator Your browser does not support JavaScript!

It is currently Anno Societatis year.


To calculate from Modern date to Anno Societatis:

Enter the Date:

Is Anno Societatis ??.


To calculate from Anno Societatis to Modern year:

Enter the Anno Societatis:

Anno Societatis 53 is from from May 1, year to April 30, year.


Roman Numeral Converter:

Enter a number:

Entry = Result

/* Current SCA year script. Remember that May is month 04 */ var d = new Date(); var SCAd = new Date(1966, 04, 01); var SCAyear = d.getFullYear() – SCAd.getFullYear(); if (d.getMonth() < 4){ SCAyear = d.getFullYear() – 1966; if (d.getDate() == 30) {SCAyear++} } else {SCAyear = d.getFullYear() – 1965;} document.getElementById("as").innerHTML = SCAyear; /* End current SCA year script*/ var M2ASday = "day"; var M2ASmonth = "month"; var M2ASmodernyear = "modern"; var M2ASyear = SCAyear; var SCAyearto = SCAyear+1966;var SCAyearfrom = SCAyear+1965; if (d.getMonth() < 4) {SCAyearto = SCAyear+1966;SCAyearfrom = SCAyear+1965; if (d.getDate() == 30) {SCAyear++}} var target = SCAyear; document.getElementById("inputyear").innerHTML = target; document.getElementById("asinputfrom").innerHTML = SCAyearfrom; document.getElementById("asinputto").innerHTML = SCAyearto; /* Modern Date to AS year */ function moderntoAS() { var modernentry = document.getElementById("moderndate").value; var dmodern = new Date(modernentry); if ( !!dmodern.valueOf() ) { // Valid date M2ASmodernyear = dmodern.getFullYear(); M2ASmonth = dmodern.getMonth(); M2ASday = dmodern.getDate(); document.getElementById("returnresult").innerHTML = '

Is Anno Societatis ??.

‘; } else { document.getElementById(“returnresult”).innerHTML = “Please enter a valid date.”; } if (M2ASmonth < 4){ M2ASyear = M2ASmodernyear – 1966; if (M2ASday == 30) {M2ASyear++} } else {M2ASyear = M2ASmodernyear – 1965;} document.getElementById("M2AScalcAS").innerHTML = M2ASyear; } document.getElementById("M2AScalcAS").innerHTML = M2ASyear; /*End Modern Date to AS year calculator*/ /* AS Year to modern calculator */ function targetyear() { document.getElementById("AStoM").innerHTML ='

Anno Societatis 53 is from from May 1, year to April 30, year.

‘; var target = document.getElementById(“targetAS”).value; /*If the string input is Roman numerals */ var targettest = parseInt(target); if (targettest != target) { target = target.toUpperCase(); var ar = fromRoman(target); //call roman numeral converter target = ar; } targetAS = parseInt(target); SCAyearfrom = targetAS + 1965; SCAyearto = targetAS + 1966; document.getElementById(“inputyear”).innerHTML = target; document.getElementById(“asinputfrom”).innerHTML = SCAyearfrom; document.getElementById(“asinputto”).innerHTML = SCAyearto; } /*End AS Year to Modern Calculator */ /*code shamelessly stolen from https://www.selftaughtjs.com/algorithm-sundays-converting-roman-numerals/ */ function RomanOrModern() { document.getElementById(“RConvert”).innerHTML =’

Entry = Result

‘; var entry = document.getElementById(“romanconvert”).value; var entrytest = parseInt(entry); if (entrytest != entry) { entry = entry.toUpperCase(); var fr = fromRoman(entry); //call Roman to Number document.getElementById(“product”).innerHTML = fr; } else { var tr = toRoman(entry); //call number to Roman document.getElementById(“product”).innerHTML = tr; } document.getElementById(“entry”).innerHTML = entry; } //end decision function function toRoman(entry) { //converts from number to roman var result = ”; var decimal = [1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1]; var roman = [“M”, “CM”,”D”,”CD”,”C”, “XC”, “L”, “XL”, “X”,”IX”,”V”,”IV”,”I”]; for (var i = 0;i<=decimal.length;i++) { while (entry%decimal[i] < entry) { result += roman[i]; entry -= decimal[i]; } } return result; } function fromRoman(entry) { //converts from roman to number var result = 0; // the result is now a number, not a string var decimal = [1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1]; var roman = ["M", "CM","D","CD","C", "XC", "L", "XL", "X","IX","V","IV","I"]; for (var i = 0;i0){invalidnotice();return;} //end validation return result; } function invalidnotice() { document.getElementById(“notice”).innerHTML =’

This is not a valid Roman numeral.’; }