Hi all, How to change date with specific format using javascript
var dateFormat = response.d; // response.d= DD/MM/YYYY OR MM/DD/YYYY OR YYYY/MM/DD ETC...
var cur = new Date(dateFormat);
document.getElementById("Stdate").value=cur;
my expected output should come based on the dateformate. i tried the above code but it showing invalid date
so please drop me a solution for this.
thanks to all
regards, stellus.