using System;
class Foo
{
public Nullable<DateTime> DateCreated { get; set; }
public Foo()
DateCreated = DateTime.Now;
}
class Program
public static void Main()
var foo = new Foo();
var formatted = foo.DateCreated.Value.ToString("ddMMyyyy");
Console.WriteLine(formatted);