title: In ASP.NET MVC2, convert time user's timezone. How to get timezone info?
body: <p>I stored datetime into database then i retrieve the values.. My server db is located other country. so when the value is retrieve it is taking other country date and time.. </p>
  
  <p>I tried in controller as follow,</p>
  
  <pre><code> if (item.CreatedDate == null)
          {
              item.CreatedDate = DateTime.Now;
              var timeZone = TimeZoneInfo.ConvertTimeBySystemTimeZoneId(item.CreatedDate, TimeZoneInfo.Local.Id, item.CreatedDate.Value).ToString();
          }
  </code></pre>
  
  <p>I got line error here... How to correct it?</p>