How to get the date from a DateTime object in C#? - Biz Tech

How to get the date from a DateTime object in C#?

Listen
 DateTime now = DateTime.Now;
DateTime dateOnly = now.Date;
Console.WriteLine(dateOnly);