这里 em 从用户那里获取输入,然后在输出屏幕上打印时转换为 DateTime,它同时显示日期和时间,但我只想显示日期而不是时间,我该怎么做?
//INPUT
Console.Write("Pleas Enter Date of Birth: mm-dd-yy: ");
Date_Of_Birth = Console.ReadLine();
//Converstion
Date_Only = Convert.ToDateTime(Date_Of_Birth);
//Printing no ouput Screen.
Console.Write(Date_Only);"