Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript date today dd mm yyyy

var dateString  = "20120515";
var year        = dateString.substring(0,4);
var month       = dateString.substring(4,6);
var day         = dateString.substring(6,8);

var date        = new Date(year, month-1, day);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #date #today #dd #mm #yyyy
ADD COMMENT
Topic
Name
5+2 =