Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery get today date

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 stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #today #date
ADD COMMENT
Topic
Name
8+5 =