StephanieCC
Technical User
I have a date script on my site and have just created a Spanish version of the site and have been looking for a way to have the date display in Spanish--here's the script:
<script language="JavaScript"><!--
var thisyear = today.getYear(); // varies in JavaScript and JScript
document.write(isnMonths[today.getMonth()+1]+" "+today.getDate()+", ")
if (thisyear >= 2000) { // covers JScript post 2000
document.write(thisyear);
}
else { // covers JScript from 1900 thru 1999 and JavaScript until 3899
document.write(1900 + thisyear);
} // not handled: JScript pre 1900
-->
</script>
here's the English web page with date
here's the Spanish page
thanks, Stephanie
<script language="JavaScript"><!--
var thisyear = today.getYear(); // varies in JavaScript and JScript
document.write(isnMonths[today.getMonth()+1]+" "+today.getDate()+", ")
if (thisyear >= 2000) { // covers JScript post 2000
document.write(thisyear);
}
else { // covers JScript from 1900 thru 1999 and JavaScript until 3899
document.write(1900 + thisyear);
} // not handled: JScript pre 1900
-->
</script>
here's the English web page with date
here's the Spanish page
thanks, Stephanie