Answers for "c# datetimepicker get date and time"

C#
0

get date value from datepicker c#

DateTime dt = this.dateTimePicker1.Value.Date;
Posted by: Guest on March-03-2021
2

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");
Posted by: Guest on May-24-2020

C# Answers by Framework

Browse Popular Code Answers by Language