title: Javascript handle daylight savings time for different time zones
body: <p>Here I got an input box on my web page for users to input a date. For some reason I can't use a datetime picker and I have to pass it to an .NET based service as a <code>String</code> via ajax.</p>
  
  <p>Users may from different time zones. And the date is stored as UTC in database.</p>
  
  <p>It seems I have 2 options to handle the timezone:</p>
  
  <ol>
  <li>Convert the date string to UTC date string at frontend and pass to service.</li>
  <li>Pass the UTC offset to service and convert the date string to UTC at backend.</li>
  </ol>
  
  <hr>
  
  <p>However, neither option can handle the <strong>daylight savings time</strong>.</p>
  
  <p>Could anyone give me some suggestions on this?</p>