-3

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!!!

Mr Vy
  • 15
  • 5

1 Answers1

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