Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how make date object in jquery from custom date

var formattedDate = new Date("yourUnformattedOriginalDate");
var d = formattedDate.getDate();
var m =  formattedDate.getMonth();
m += 1;  // JavaScript months are 0-11
var y = formattedDate.getFullYear();

$("#txtDate").val(d + "." + m + "." + y);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #date #object #jquery #custom #date
ADD COMMENT
Topic
Name
3+4 =