title: Convert UTC+1 to UTC time in C#
body: <p>What is the best solution for converting UTC+1 to UTC in C# when you have scenario like this one:</p>
  
  <p>From client side I am sending request to server. Server gets data from client and keeps it in object that has:</p>
  
  <p>string Date
  string Time
  string TimeZone</p>
  
  <p>properties. TimeZone property holds something like this: <code>"Central Europe Standard Time"</code></p>
  
  <p>Using this code:</p>
  
  <pre><code>var infos = TimeZoneInfo.GetSystemTimeZones();
  var timeZone = infos.FirstOrDefault(x =&gt; x.Id == testSessionViewModel.TimeZone);
  TimeZoneInfo tz = TimeZoneInfo.FindSystemTimeZoneById(testSessionViewModel.TimeZone);
  </code></pre>
  
  <p>I am able to find of that <code>"Central Europe Standard Time"</code> is actually UTC+1.</p>
  
  <p>timeZone object has this value (same value has tz, those are two ways of implementing same thing, for testing purpose):</p>
  
  <p><a href="https://i.stack.imgur.com/FmveK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FmveK.png" alt="enter image description here"></a></p>
  
  <p>Now I want to use this information in some way to convert UTC+1 time that was result to UTC.</p>
  
  <p>My idea is:</p>
  
  <ol>
  <li>Take date and time strings and concatenat them to one string.</li>
  <li>Parse that string to DateTime</li>
  <li>Somehow get +1 value (possible from BaseUtcOffset propery)</li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/TcvE3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TcvE3.png" alt="enter image description here"></a></p>
  
  <ol start="4">
  <li>Substract 1 hour to get UTC time.</li>
  </ol>
  
  <p>This looks pretty messy to me. So my question is did someone done something like this before and has some better idea or practice.</p>
  
  <p>Other tought was: instead of sending <code>"Central Europe Standard Time"</code> from client to server and doing all that conversion thing, looking for time zone etc. 
  Maybe i can send sting 1, when I have selected UTC+1, and convert it to some number type, and directly use that value when adding or substracting time.</p>
  
  <p>I am open for more ideas :)</p>