JQuery to get Current Date

JQuery to get Current Date:

 The following code is used to get current date and time by using jquery.

 Before that, Date() function is not the part of JQuery. it is one of JavaScript’s features.

var date = new Date();

var month = date.getMonth()+1;
var day = date.getDate();
var output = date.getFullYear() + ‘-‘ + (month<10 :="" day="" font="" month="">

Leave a Reply

Your email address will not be published. Required fields are marked *