title: Convert a time string say '12:05 PM' into a datetime using Date.Parse in Javascript
body: <p>I want to convert a time string say '12:05 PM' into a datetime using <code>Date.Parse</code> in Javascript.
  When I pass in a value of say 12:05 PM or 12:10 PM or ... or 12:55 PM the value returned by <code>startTime</code> below  is null, i.e. <code>startTime = null</code></p>
  <p>But when I pass in values of 1:00 PM, 1:05 PM, 1:10 PM, 12:00 AM,...,12:00 PM it works fine<br />
  returning me a Date with the time included.</p>
  <p>This is the code line causing an issue:</p>
  <pre><code>var startTime = Date.parse($(&quot;#&lt;%= StartTime.ClientID %&gt;&quot;).val());  //code causing the issue
      
  </code></pre>
  <p>And <code>StartTime</code> is a textbox.</p>
  <p>I am writing the above code in client/html in an ASP.NET application on the web form.</p>