Posted on: 11/13/2014 10:54:49 AM | Views : 644

Hi there,
I am converting Json data to XNode using JsonConvert.DeserializeXNode method of ' Newtonsoft.json' DLL. But facing problem while trying to convert date which is in the format like ''2013-01-20T23:50:00+05:30', it returns date in format like '2013-01-20T18:20:00+00:00'. It creates lot of problems for me as I can't change input format and also want in the same format in which  I am sending.
The code I am using is as follows:
Code for Input :  string jsonData = @"{  '@Id': 1,  'Email': 'james@example.com', 'Active': true,  'CreatedDate': '2013-01-20T23:50:00+05:30',  'Roles': ['User', 'Admin' ], 'Team': {'@Id': 2, 'Name': 'Software Developers', 'Description': 'Creators of fine software products and services.' }}";               XNode objXNode = JsonConvert.DeserializeXNode(jsonData, ...

Go to the complete details ...