You can get the date with javascript like so:
var date = new Date();
var d = date.getDate();
var day = (d < 10) ? '0' + d : d;
var m = date.getMonth() + 1;
var month = (m < 10) ? '0' + m : m;
var yy = date.getYear();
var year = (yy < 1000) ? yy + 1900 : yy;
Check a working example here
There is also a similar answer: How do I get the current date in JavaScript?
1
solved Getting the date shown with JS [closed]