I have tried following way but doesn't work
dateTime="2018-12-13T07:33:35.893Z"
DateTime dt;
DateTime.TryParseExact(dateTime, out dt);
But I am always getting dt as {1/1/0001 12:00:00 AM}
.
Can you please tell me why? and how can I convert that string to date?
I also tried Convert.ToDateTime
but doesn't work.
What I actually want is getting the dd/MM/yyyy
string'd DateTime so I could perform a query on a DB.