Actually I am working with angular 4 application. I am having a scenario like, I have to send the Date for as dd/mm/yyyy to the server.
I am using property as input type ="date". But this property returns the value like yyyy/mm/dd. so how do I change the output format of the Date.
Students.html
<input type="date" [(ngModel)]="Students.dob" name="Students.dob">
After selecting the date, when I am check with console.log().
Students.components.ts
checkDate() { console.log(Students.dob); }
Finally the output was yyyy/mm/dd..
Is there any way to overcome this issue? kindly let me know.