Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript new date from string dd/mm/yyyy

var dateStr = 'dd/mm/yyyy';
var date = dateStr.split("/");
var dd=date[0];
var mm=date[1];
var yyyy=date[2];			

dateObj = new Date(yyyy,mm,dd);  
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #date #string
ADD COMMENT
Topic
Name
5+3 =