title: What is the best way to get a formatted string to represent UTC offset?
body: <p>I need to format a date like so: 20110202192008-0500.  The following code does the trick but I was wondering if there is a better/cleaner way to do this in c# 3.5.  Thanks!!</p>
  
  <pre><code>  var date = DateTime.Now;
    var strDate = TimeZoneInfo.ConvertTimeToUtc(date).ToString("yyyyMMddHHmmss");
    var offsetHours = TimeZoneInfo.Local.GetUtcOffset(date).Hours.ToString("00");
    var offsetMinutes = TimeZoneInfo.Local.GetUtcOffset(date).Minutes.ToString("00");
    Console.Write(string.Concat(strDate, offsetHours, offsetMinutes));
  </code></pre>