Hi HemanthB-9452,
You can use DateTimePicker.CustomFormat property to set the custom date/time format string.
private void Form1_Load(object sender, EventArgs e)
{
dateTimePicker1.Format = DateTimePickerFormat.Custom;
dateTimePicker1.CustomFormat = "MM'/'dd'/'yyyy hh':'mm tt";
}
And the "tt" character is read as a two-letter AM/PM format string.
More details please refer to this document.
Best Regards,
Daniel Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.