Код:
<SCRIPT Language="JavaScript">
<!-- hide from old browsers
var modDate = new Date(document.lastModified)
var modMonth = modDate.getMonth()+1
var modYear = modDate.getYear()
var modDay = modDate.getDate()
if(modDay<10) modDay = "0" + modDay
if(modMonth<10) modMonth= "0" + modMonth 
if(modYear<1000) modYear+=1900 
document.write("сайт обновлён: " + modDay + "|" + modMonth + "|" + modYear+"")
//-->
</SCRIPT>