DateTime dt = DateTime.Now; // for example DateTime date = dt.Date; TimeSpan time = dt.TimeOfDay;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)