I am using Ajax request to send the value of date to my API Controller here is my ajax call
$("#txtpdate").on("changeDate", function (e) {
var Date =$('#txtpdate').val();
console.log(Date);
$.ajax({
type: 'POST',
contentType: false,
url: '/api/ServiceProvider/GetUpdatedPrice',
data:{date: Date },
cache: false
}).done(function (response) {
});
});
And here is my api controller
[HttpPost]
[Route("GetUpdatedPrice")]
public ServiceProviderDocuments GetUpdatedPrice(DateTime date)
{
return ServiceProviderDocumentsGateway.GetUpdatedPriceofBike(date);
}
I am getting the desired value in console.log(Date) but when I reached to the controller it is showing null value
please take a look on the below image

console.log(Date);log to your console?