Pregunta

I have a supposed Unix date format coming through in a json feed from a third party that looks like this:

/Date(1391741913713+1100)/

Is there any way I can parse that to a DateTime object?
I'm not convinced this is a "true" Unix dateTime object...

Looking at the accepted answer to this question: How to convert a Unix timestamp to DateTime and vice versa? The parsing method takes a double... my string contains +1100 (as well as the outder /Date()/ part)

¿Fue útil?

Solución

As it happens, when parsing from JSON using JSON.net, this is handled automatically

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top