var today=new Date();
var str = today.toLocaleString();
var idx = str.indexOf(today.getFullYear());
document.write(str.substring(0,idx+4));

