C# dateTimePicker is not in correct format

  • 361 Views
  • Last Post 21 April 2021
[email protected] posted this 21 April 2021

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 21 April 2021

dateTimePicker values are Custom CustomFormat: dd-MM-yyyy

Close