public void Calculate_Warr_RemainingDate() { DateTime commondate1 = Convert.ToDateTime(StartDate); DateTime dob1 = Convert.ToDateTime(EndDate); //CRM_DAL. DateDiff dateDifference = new DateDiff(commondate1, dob1); txtwarr_rem.Text = dateDifference.tesydate(); //txtwarrmonth_rem.Text = dateDifference.monthcal().ToString (); }
public void Calculate_CBday() { DateTime commondate1=Convert .ToDateTime (CommonDate); DateTime dob1 = Convert.ToDateTime(dob); //CRM_DAL. DateDiff dateDifference = new DateDiff(commondate1, dob1); txtdiffdate.Text = dateDifference.ToString(); //DateDiff dateDifference = new DateDiff(this.dateTimeTo.Value, this.dateTimeFrom.Value); //this.lblOutput.Text = "Difference between " + this.dateTimeFrom.Value.ToShortDateString() // + " and " + this.dateTimeTo.Value.ToShortDateString() + " is :\n" // + dateDifference.ToString(); }