I recieved a string from url "/Date(1433969291760)/", I want to parse this string to datetime mm-dd-yyyy by C# code. help me !!! thank advance!!!
Asked
Active
Viewed 2,016 times
1 Answers
3
Newtonsoft JSON.NET can handle these kinds of dates directly.
string s = "\"/Date(1433969291760)/\"";
var d = JsonConvert.DeserializeObject<DateTime>(s);

user12864
- 581
- 4
- 7