get date of datetimepicker c# code example
Example 1: how to select time and date in datetimepicker in c#
dateTimePicker1.Format = DateTimePickerFormat.Custom;
dateTimePicker1.CustomFormat = "hh:mm:ss tt dd/MM/yyyy";
dateTimePicker1.ShowUpDown = true;
string dt = dateTimePicker1.Value.ToString("hh:mm:ss tt dd/MM/yyyy");
Example 2: get date value from datepicker c#
DateTime dt = this.dateTimePicker1.Value.Date;