How to append datetime value to formdata and receive it in controller
问题 I want to know how I can pass datetime value through formdata and retrieve it in controller and convert it to DateTime in the controller I've tried as below: var formdata=new FormData(); fromDate = $('.from_date').datepicker('getUTCDate'); toDate = $('.to_date').datepicker('getUTCDate'); formdata.append("start", new Date(fromDate)); formdata.append("end", new Date(toDate)); and in $.ajax I am setting data:formdata in my controller I receive it as below: DateTime frmDate = Convert.ToDateTime