si


Samstag, 8. Dezember 2018

script - Date

<script src="http://www.onlinetools24.de/datum-uhrzeit-server-include.php"></script>
<script type='text/javascript'> <!--
function GetDay(intDay){
var DayArray = new Array("Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag");
return DayArray[intDay];
}

function GetMonth(intMonth){
var MonthArray = new Array("Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember");
return MonthArray[intMonth];
}
function getDateStrWithDOW(){
var today = new Date();
var year = today.getYear();
if(year<1000) year+=1900
var todayStr = GetDay(today.getDay()) + ", der ";
todayStr += today.getDate() + ". " + GetMonth(today.getMonth());
todayStr += ", " + year;
return todayStr;
}
document.write("" + getDateStrWithDOW() + "");
//-->
</script>



Keine Kommentare:

Kommentar veröffentlichen