document.write('Teraz jest , ');
function getCurrentDate2()
{
objDate = new Date();
hours = objDate.getHours() < 10 ? '0' + objDate.getHours() : objDate.getHours();
minutes = objDate.getMinutes() < 10 ? '0' + objDate.getMinutes() : objDate.getMinutes();
seconds = objDate.getSeconds() < 10 ? '0' + objDate.getSeconds() : objDate.getSeconds();
return currentDate = hours + ':' + minutes + ':' + seconds;
}
function setCurrentDate2()
{
document.getElementById( 'date2' ).innerHTML = getCurrentDate2();
}
setCurrentDate2();
setInterval( 'setCurrentDate2()', 1000 );
// Returns today's date in a string with full day and month names
// by Roger C. Scudder Jr. on 10-2-98
// corrected for Netscape by Grzegorz Golebiewski
DayName = new Array(7)
DayName[0] = "niedziela"
DayName[1] = "poniedziałek"
DayName[2] = "wtorek"
DayName[3] = "środa"
DayName[4] = "czwartek"
DayName[5] = "piątek"
DayName[6] = "sobota"
MonthName = new Array(12)
MonthName[0] = "stycznia"
MonthName[1] = "lutego"
MonthName[2] = "marca"
MonthName[3] = "kwietnia"
MonthName[4] = "maja"
MonthName[5] = "czerwca"
MonthName[6] = "lipca"
MonthName[7] = "sierpnia"
MonthName[8] = "września"
MonthName[9] = "października"
MonthName[10] = "listopada"
MonthName[11] = "grudnia"
function getDateStr2(){
var Today = new Date()
var WeekDay = Today.getDay()
var Month = Today.getMonth()
var Day = Today.getDate()
var Year = Today.getFullYear()
if(Year <= 99)
Year += 1900
return DayName[WeekDay] + "," + " " + Day + " " + MonthName[Month] + " " + Year
}
document.write(getDateStr2())
document.write('');