I am developing an application using MVC. I am trying to pass a value (as parameter) using Jquery function which sends the value to a controller throgh ajax. The parameter is like '01/12/2021' which is date in 'dd/mm/yyyy' format. I am using an anchor tag like:
<a href='javascript:ViewDocDetails(@item.UploadDate.ToString())'>@Html.DisplayFor(modelItem => item.UploadDate)</a>
The function is like:
function ViewDocDetails(UploadDate) {
alert(UploadDate);
....
}
When I run the program the alert gives a value like '0.00004123371268349002'. How can I solve the problem?