title: Convert JavaScript Date to .NET DateTime
body: <p>I getting a Date value from JavaScript to a controller in MVC and I would like to parse it to .NET format DateTime but its giving me an error such as: </p>
  
  <blockquote>
    <p>The string was not recognized as a valid DateTime.</p>
  </blockquote>
  
  <p>The Format of the JavaScript date is:</p>
  
  <pre><code>"Wed May 23 2012 01:40:00 GMT+0200 (W. Europe Daylight Time)"
  </code></pre>
  
  <p>I've tried this but its not working:</p>
  
  <pre><code>DateTime.ParseExact(begin.Substring(1, 24), "ddd MMM d yyyy HH:mm:ss", CultureInfo.InvariantCulture);
  </code></pre>
  
  <p>anyone can give me a sample code please? thanks!</p>