<!DOCTYPE html>
<html>
   <title>Erstellungsdatum mit js</title>
<head>
<style>
    body {
        	width: 50%;
	margin:25;
	padding:30;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	color: blueviolet;
	font-size: 15px;
	line-height: 20px;
	height: 100%;
	background-color: white;
	}
address{
    width: 50%;
	margin:25;
	padding:30;
	font-family: 'Roboto', sans-serif;
	color: gray;
    }

</style>
<script> 
//*Dieser Teil des scripts wird üblicherweise in eine js-datei ausgelagert
var DatumsString;
function lastModified ( string )
   {
     if ( Date.parse ( document.lastModified ) != 0 )
     {
       var dLM = new Date(Date.parse(document.lastModified));

        var day = new Array("Sonntag","Montag","Dienstag",
            "Mittwoch","Donnerstag","Freitag","Samstag");
        var month = new Array("Januar","Februar","März","April","Mai","Juni",
            "Juli","August","September","Oktober","November","Dezember");

        var date = dLM.getDate();
        var day = day[dLM.getDay()];
        var year = dLM.getFullYear();
        var month = month[dLM.getMonth()];
        var hours = dLM.getHours();
        var minutes = dLM.getMinutes();
        var seconds = dLM.getSeconds();

        if (date<10) date = "0"+date;
        if (month<10) month = "0"+month;
        if (hours<10) hours = "0"+hours;
        if (minutes<10) minutes = "0"+minutes;
        if (seconds<10) seconds = "0"+seconds;

        document.write("Letzte &Auml;nderung: "
            +day+", "+date+". "+month+" "+year+", um "+hours+":"+minutes+":"+seconds);
     }
   }
</script>
</head>
<body>
<h1>Erstellungsdatum mit js</h1>
Lorem ipsum is a pseudo-Latin text used in web design, typography, layout, and printing in place of English to emphasise design elements over content. It's also called placeholder (or filler) text. It's a convenient tool for mock-ups. It helps to outline the visual elements of a document or presentation, eg typography, font, or layout. Lorem ipsum is mostly a part of a Latin text by the classical author and philosopher Cicero. 
<br /><br />
    <address>
	<script language="JavaScript" type="text/javascript">
	//*Dieser Teil des scripts wird in die html-Datei eingefügt (meist ganz am Ende)

   		<!--
    		lastModified ( "Zuletzt aktualisiert: " );
   		// -->
	</script>                                                               
    </address>  
</body>
<html>