I am trying to subtract two dates from eachother in c#. I have left dateTimePicker and right dateTimePicker and textBox for the result. Can you show me the correct code?
private void dateTimePicker4_ValueChanged(object sender, EventArgs e)
{
int leftDateTime;
int rightDateTime;
dateTimePicker3.Value.Subtract - dateTimePicker4.Value.Subtract = textBox3;
}