using System;
public class Program
{
public static void Main()
DateTime dt = new DateTime(2010,10,11);
String txtDate=dt.ToString();
string strDate = txtDate.Substring(6, 4) + "-" +
txtDate.Substring(3, 2) + "-" +
txtDate.Substring(0, 2);
Console.WriteLine( strDate);
}