I am trying to set a javascript
date
so that it can be submitted via JSON
to a .NET
type, but when attempting to do this, jQuery
sets the date
to a full string
, what format does it have to be in to be converted to a .NET
type?
var regDate = student.RegistrationDate.getMonth() + "/" + student.RegistrationDate.getDate() + "/" + student.RegistrationDate.getFullYear();
j("#student_registrationdate").val(regDate); // value to serialize
I am using MonoRail
on the server to perform the binding to a .NET
type, that aside I need to know what to set the form hidden field value to, to get properly sent to .NET
code.