📌  相关文章
📜  C# 日期类型没有时间 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:16.245000             🧑  作者: Mango

代码示例1
/*
There is no dedicate pure Date class because you already have DateTime which can handle it. 

If you want the standard approach look at the DateTime.Date property which gives just the date 
portion of a DateTime with the time value set to 12:00:00 midnight (00:00:00).

E.g. Console.WriteLine($"Date only: {myDateVar.Date}");
*/