title: Convert Gmail Date to your DateTime as displayed in Gmail Account
body: <p>I am getting inbox messages using Gmail API in my c# ASP.net application. All messages are from different time zones(states/countries), I wanna display there date in my own time zone as it displays in Gmail App. I searched a lot for conversion between timezones but can't solve it may be i am not getting it properly.</p>
  <p>My code for but i tried so far is: (Its working for most of messages but for few of them its not displaying right DateTime)</p>
  <p>For Example:</p>
  <blockquote>
  <p>Time displayed in Gmail App: 30/11/2017 2:11 AM</p>
  <p>My code Input/ value from Gmail API: Wed, 29 Nov 2017 10:11:35 -0800</p>
  </blockquote>
  <p>Below are some values i am getting from my current gmail inbox messages:</p>
  <p><a href="https://i.stack.imgur.com/Kvq2g.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Kvq2g.png" alt="enter image description here" /></a></p>
  <pre><code> var re = service.Users.Messages.List(&quot;me&quot;);
   re.LabelIds = &quot;INBOX&quot;;
   re.Q = &quot;is:all&quot;;
   var res = re.Execute();
   if (res != null &amp;&amp; res.Messages != null)
   {               
     foreach (var email in res.Messages)
     {    
       var emailInfoResponse = service.Users.Messages.Get(&quot;me&quot;, email.Id).Execute();
      if (emailInfoResponse != null)
      {
        foreach (var mParts in emailInfoResponse.Payload.Headers)
        {
          if (mParts.Name == &quot;Date&quot;)
          {
            date = mParts.Value;
          }          
        }
      }
    }
  }
  
  My Time Zone is: (UTC+08:00) Perth
  </code></pre>
  <p>Any help would be appreciated. Thanks!</p>