This question is locked. New answers and comments are not allowed.
If I use the following in a client-side function with a date 1/1/2010 selected, the alert box says the value is
Fri Jan 1 00:00:00 EST 2010
var selectedMinDate = $('#MinDate').data('tDatePicker').value();
alert(selectedMinDate);
I get a 'dateTimeFormat' is null or not an object if I attempt an $.Ajax post of the value to a DateTime variable. How can I convert a DatePicker value to the a standard DateTime format like {0:d}?
I tested my Ajax POST by putting "1/1/2010" in place of the DatePicker value and it works, so it doesn't appear to see the value of DatePicker as a DateTime.
Thanks.
Fri Jan 1 00:00:00 EST 2010
var selectedMinDate = $('#MinDate').data('tDatePicker').value();
alert(selectedMinDate);
I get a 'dateTimeFormat' is null or not an object if I attempt an $.Ajax post of the value to a DateTime variable. How can I convert a DatePicker value to the a standard DateTime format like {0:d}?
I tested my Ajax POST by putting "1/1/2010" in place of the DatePicker value and it works, so it doesn't appear to see the value of DatePicker as a DateTime.
Thanks.