DateTimeOffset format: dd
using System; public class Test { public static void Main() { DateTimeOffset theTime = new DateTimeOffset(2010, 5, 2, 16, 35, 0, DateTimeOffset.Now.Offset); Console.WriteLine("The day component of {0} is {1}.",theTime, theTime.ToString("dd")); } } //The day component of 5/2/2010 4:35:00 PM -08:00 is 02.