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="">10>
0 comments:
Post a Comment