Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

put 0 in front of month number javascript

var d = new Date();
var date = d.toISOString().slice(0,10); // "2014-05-12"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #put #front #month #number #javascript
ADD COMMENT
Topic
Name
3+8 =