title: How to convert to .net Datetime from Json Datetime format returned from ServiceStack implementation of Redis?
body: <p>I am trying to retrieve from Redis where value is of Datetime type. Pasted Code snippet below. I am using ServiceStack.Redis to interact with Redis.</p>
  
  <pre><code>DateTime dt = DateTime.Now; // current value is dt is --&gt; 8/2/2012 12:18:38 AM
  redisClient.Set&lt;DateTime&gt;("myKey", DateTime.Now);
  </code></pre>
  
  <p>I am getting the value back from Redis using the following command.</p>
  
  <pre><code>var dtvalue = redisClient.Get("myKey");
  </code></pre>
  
  <p>the value which, dtValue variable hold is</p>
  
  <pre><code>\/Date(1343846917510+0530)\/
  </code></pre>
  
  <p><strong>How can I convert this into .net DateTime? I am using C#.</strong></p>
  
  <p>I tried the following but not getting the correct result.</p>
  
  <pre><code>DateTime d = new DateTime(1343842541241);
  </code></pre>
  
  <p>I am getting the value is d as 1/2/0001 1:19:44 PM.</p>
  
  <p>Thanks,</p>
  
  <p>M</p>