var now = new Date();
var month = now.getMonth()+1;
var year = now.getYear()+1900;
var dayNr = ((now.getDate()<10) ? "" : "")+ now.getDate();
var todaysDate =
(
dayNr
+ ". "
+ month
+ ". "
+ year
);

document.write(todaysDate);
