In C# / .NET it is possible to get date part of
DateTime object in the following way.
DateTime.Date property example
DateTime now = DateTime.Now.Date; // date only Console.WriteLine(now.ToString());
- this example has been run with independent culture.
- time part is set to zeros after
Dateproperty has been used.