C# dateTimePicker is not in correct format

  • Last Post 4 weeks ago
[email protected] posted this 4 weeks ago

Please I have form1 and form2 in my window application. Form1 has textbox and dateTimePicker and form two has datagridView1, delete and edit button and everything is working fine except the format for dateTimePicker.

Below is my code

Private void datagridView1_ClickCell(....) { Form.dtDateJoin. value = datagridView1.Rows[e.RowIndex].value.ToString()


[email protected] posted this 4 weeks ago

dateTimePicker values are Custom CustomFormat: dd-MM-yyyy