Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript - How to get current date in jQuery?

var d = new Date();

var month = d.getMonth()+1;
var day = d.getDate();

var output = d.getFullYear() + '/' +
    (month<10 ? '0' : '') + month + '/' +
    (day<10 ? '0' : '') + day;
Source by worcraft-algeria-dz.com #
 
PREVIOUS NEXT
Tagged: #javascript #How #current #date
ADD COMMENT
Topic
Name
5+5 =