I am no expert on this, just got it working a few days ago, but here is the code I use.
tg.viewModel.data.ApplicationCreatedOn = dateToWcf(tg.viewModel.data.shadowApplicationCreatedOn);
tg.viewModel.data.LastUpdatedOn = dateToWcf(tg.viewModel.data.shadowLastUpdatedOn);
tg.viewModel.data.DeclarationDateTime = dateToWcf(tg.viewModel.data.shadowDeclarationDateTime);
tg.viewModel.data.ApplicantDob = dateToWcf(tg.viewModel.data.shadowApplicantDob);
url: tg.crudServiceBaseUrl +
"You application as been saved to our servers."
"An error occured while saving the application. \n\n The error was: "
+ data +
"\n\n If you close your browser now, any unsaved data will be lost."
Hope this helps