Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Javascript format date / time

var date = new Date('2014-8-20');
console.log((date.getMonth()+1) + '/' + date.getDate() + '/' +  date.getFullYear());
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #Javascript #format #date #time
ADD COMMENT
Topic
Name
8+3 =