This question is locked. New answers and comments are not allowed.
I am using datepicker, and need to get the value of datepicker in JQuery code. I've tried like the below:
var d = ($('#AsOfDateData').data("tDatePicker").value()); and passing the value of d as string to my action method, in the action method converting that date string to real datetime object using Convert.ToDatetime(d); This is throwing exception: string is not valid datetime because when I get datepicker value in JQuery, the date is in this format "Thu Feb 17 00:00:00 CST 2011". In JQuery, How to get the value of datepicker in MM/dd/yyyy format?
Thanks