DateTime now = DateTime.Now;
Console.WriteLine(now);
Console.WriteLine(now.ToString("yyyy/MM/dd"));
実行例