Added automatic date generation for new docs

add current date in new generated documents
var d=new Date();
=> Could be optimized to remove the timezone
Please TEST that it works!