Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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");
 
PREVIOUS NEXT
Tagged: #select #time #date #datetimepicker
ADD COMMENT
Topic
Name
9+5 =