public object postDate(DateTime start)
{
//Save the DateTime to sql Server
//return success code or object
}
How's the json string look like to post DateTime?
Make an object and wrap it to this like:
Public class SampleModel
{
Public DateTime Start {get; set;}
}
then POST it to the Action:
public object postDate(SampleModel sampleModel)
{
// sampleModel.Start
//Save the DateTime to sql Server
//return success code or object
}
JSON must be like this:
{
"Start":"2017-05-11T09:18:54.092Z"
}