Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js date into format

var date = new Date('1970-01-01'); // Or your date here
console.log((date.getMonth() + 1) + '/' + date.getDate() + '/' +  date.getFullYear());
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #date #format
ADD COMMENT
Topic
Name
3+7 =