How to deserialize object with date in C#
<p>I have this Json from a web api: </p>

<pre><code>jsonstring ={"users":[{"id":1123,"last_update":"2016-02-28 14:53:04"}],"page":1,"pages":1}
</code></pre>

<p>which I want to deserialize in an object like: </p>

<pre><code>public class Rootobject
{
    public User[] users { get; set; }
    public int page { get; set; }
    public int pages { get; set; }
}

public class User
{
    public int id { get; set; }
    public DateTime last_update { get; set; }
}
</code></pre>

<p>for this I use: </p>

<pre><code> var obj= JsonConvert.DeserializeObject&lt;Rootobject&gt;(jsonString);
</code></pre>

<p>the result has <code>null</code> for <code>last_update</code>. </p>

<p><code>jsonstring</code> is a string result from <code>WebClient.DownloadString(url)</code>; which look like above example. </p>

<p>How can I get the date on deserialization? </p>

<p>Edit:</p>

<p>None of the solutions from this post <a href="https://stackoverflow.com/questions/21256132/deserializing-dates-with-dd-mm-yyyy-format-using-json-net">Deserializing dates with dd/mm/yyyy format using Json.Net</a> help me fix my issue. </p>