private void dtpPM_ValueChanged(object sender, EventArgs e) { DateTime startdate = Convert.ToDateTime(dtpPM.Text.ToString()); DateTime enddate = Convert.ToDateTime(dtpPMCom.Text.ToString()); System.TimeSpan diffResult = startdate - enddate; txtdeviation.Text = diffResult.ToString(); }
if(diffResult <0) { delayed++; }else { pending++; }
txtdeviation.Text = txtdeviation.Text - diffResult.ToString();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)