I am trying to set javascript date so that it can be passed via JSON to the .NET type, but when I try to do this, jQuery sets the date to a full string , in what format should it be converted to a .NET type?
var regDate = student.RegistrationDate.getMonth() + "/" + student.RegistrationDate.getDate() + "/" + student.RegistrationDate.getFullYear(); j("#student_registrationdate").val(regDate);
I use MonoRail on the server to bind to the .NET type, which aside I need to know why I need to set the value of the hidden form field in order to correctly send .NET code.
source share