Quantcast
Channel: User Kunal - Stack Overflow
Viewing all articles
Browse latest Browse all 34

Parse mysql datetime to c# DateTime [duplicate]

$
0
0

I have a MySql DateTime 1442915520000 and i need to parse it using C#.

I have tried the following:

DateTime dt = Convert.ToDateTime(dataFim);DateTime dt = DateTime.Parse(i[0]["dataFim"].ToString());

Any advice? It must be something really easy but i can't seem to figure it out...

EDIT:

I forgot to mention that this value is coming from a java web app and the value is getting parsed to java Date


Viewing all articles
Browse latest Browse all 34

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>