using System;
public class Program
{
public static void Main()
DateTime dt = new DateTime(2017, 1, 1);
Console.WriteLine( string.Format("The date before was {0}", dt) );
DateTime dtAdd = dt.AddDays(-2);
Console.WriteLine( string.Format("The date after was {0}", dtAdd) );
}