Answers for "how make date object in jquery from custom date"

0

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);
Posted by: Guest on September-02-2020

Code answers related to "how make date object in jquery from custom date"

Code answers related to "Javascript"

Browse Popular Code Answers by Language