DateTimeOffset format: dddd
using System;
using System.Globalization;
public class Test
{
public static void Main()
{
DateTimeOffset displayDate = new DateTimeOffset(2010, 1, 1, 13, 18, 00, DateTimeOffset.Now.Offset);
Console.WriteLine("{0:D}", displayDate);
Console.WriteLine("{0:d} is a {0:dddd}.",displayDate);
}
}
/*
Friday, January 01, 2010
1/1/2010 is a Friday.
*/
Related examples in the same category