|
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- Sotiris Pandis Web Site!! http://www.spandis.gr -->
<!-- Begin
// Get today's current date - Pairnei thn shmerinh hmeromhnia.
var now = new Date();
// Array list of days. Pinakas me tis hmeres
var days = new Array('ΚΥΡΙΑΚΗ','ΔΕΥΤΕΡΑ','ΤΡΙΤΗ','ΤΕΤΑΡΤΗ','ΠΕΜΠΤΗ','ΠΑΡΑΣΚΕΥΗ','ΣΑΒΒΑΤΟ');
// Array list of months. Pinakas me toys mhnes
var months = new Array('ΙΑΝΟΥΑΡΙΟΥ','ΦΕΒΡΟΥΑΡΙΟΥ','ΜΑΡΤΙΟΥ','ΑΠΡΙΛΙΟΥ','ΜΑΙΟΥ','ΙΟΥΝΙΟΥ','ΙΟΥΛΙΟΥ','ΑΥΓΟΥΣΤΟΥ','ΣΕΠΤΕΜΒΡΙΟΥ','ΟΚΤΩΒΡΙΟΥ','ΝΟΕΜΒΡΙΟΥ','ΔΕΚΕΜΒΡΙΟΥ');
// Calculate the number of the current day in the week. Ypologizei ton ari8mo ths shmerinhs meras
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
// Calculate four digit year. Ypologizei me 4 dek ton xrono
function fourdigits(number) {
return (number < 1000) ? number + 1900 : number;
}
// Join it all together. Ta bazei ola mazi
today = days[now.getDay()] + ", " +
date + " " +
months[now.getMonth()] + " " +
(fourdigits(now.getYear())) ;
// Print out the data. Ta typwnei sthn o8onh
document.write("" +today+ ".");
// End TELOS -->
</script>
|