I have a date input field when I enter the date and do the alert in this given me 123476890017 something like this. anybody can help me on this?
If I enter the date like this 12/07/2017 and in the alert, the result should come 2017/07/12.
HTML code:
<input type="date" placeholder="search" ng-model="date">
script
function formatDate(date) {
alert(date);
}