title: How to convert a Date to UTC?
body: <p>Suppose a user of your website enters a date range.</p>
  <pre><code>2009-1-1 to 2009-1-3
  </code></pre>
  <p>You need to send this date to a server for some processing, but the server expects all dates and times to be in UTC.</p>
  <p>Now suppose the user is in Alaska. Since they are in a timezone quite different from UTC, the date range needs to be converted to something like this:</p>
  <pre><code>2009-1-1T8:00:00 to 2009-1-4T7:59:59
  </code></pre>
  <p>Using the JavaScript <code>Date</code> object, how would you convert the first &quot;localized&quot; date range into something the server will understand?</p>