如何将从DB检索的日期转换为仅显示d/mm/yyyy?

use*_*396 4 c# sql date winforms

我将此21/10/1999值手动插入SQL数据库中,当我像这样检索它时:

txtDOB.Text = readPatient["pDOB"].ToString();
Run Code Online (Sandbox Code Playgroud)

它随时间显示所有内容12:00:00 AM.我的日期列的数据类型date不是datetime.那为什么它也显示时间呢?

mni*_*eto 8

((DateTime)readPatient["pDOB"]).ToString("d");
Run Code Online (Sandbox Code Playgroud)

有关支持的格式列表,请参阅:http://msdn.microsoft.com/es-es/library/zdtaw1bw(v = vs1010).aspx