I am doing a manual Jquery.Ajax post as my screen has data outside the grid that has to be posted to the Action.
I am able to do an Jquery.each to populate the model from the grid.dataSource.data, but even if I do a date.toUTCString() the HttpPost Action receives the date incorrectly after I do a JSON.stringify(model) in the Ajax post.
From Jquery AJAX post in View:
1/25/2013 (resolved to "Fri, 25 Jan 2013 05:00:00 GMT" with the .toUTCstring())
NOTE: I did try this without a .toUTCstring pior, as well as .toDateString()
Resolved To Controller Action:
{1/23/2013 11:01:57 AM}
Has anyone encountered something like this? If so, how have you resolved it?
I am able to do an Jquery.each to populate the model from the grid.dataSource.data, but even if I do a date.toUTCString() the HttpPost Action receives the date incorrectly after I do a JSON.stringify(model) in the Ajax post.
From Jquery AJAX post in View:
1/25/2013 (resolved to "Fri, 25 Jan 2013 05:00:00 GMT" with the .toUTCstring())
NOTE: I did try this without a .toUTCstring pior, as well as .toDateString()
Resolved To Controller Action:
{1/23/2013 11:01:57 AM}
Has anyone encountered something like this? If so, how have you resolved it?