DateTimeOffset format: R
using System;
using System.Globalization;
using System.Threading;
public class Example
{
public static void Main()
{
DateTimeOffset outputDate = new DateTimeOffset(2010, 5, 31, 21, 0, 0, new TimeSpan(-8, 0, 0));
string specifier;
specifier = "R"; // 'r' is identical
// Displays R: Thu, 01 Nov 2010 05:00:00 GMT
Console.WriteLine("{0}: {1}", specifier, outputDate.ToString(specifier));
}
}
Related examples in the same category