var transdate = new Date(parseInt(loanbinddata[0].LoanDueDate.substr(6)));
var formatdate = ("0" + transdate.getDate().toString()).substr(-2) + "-" + ("0" + (transdate.getMonth() + 1).toString()).substr(-2) + "-" + (transdate.getFullYear().toString());
$("#loanduedate").val(formatdate);
var formatdate = ("0" + transdate.getDate().toString()).substr(-2) + "-" + ("0" + (transdate.getMonth() + 1).toString()).substr(-2) + "-" + (transdate.getFullYear().toString());
$("#loanduedate").val(formatdate);
No comments:
Post a Comment