Sample code is here
The output of above code
var dt= new Date();
document.write(dt + "<br><br>");
Try to change the month beyond 11 and see how the year part also change. Change this like this.
The output is here
Subscribe to our YouTube Channel here
This article is written by plus2net.com team.