Exemplo n.º 1
0
        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 ();

        }
Exemplo n.º 2
0
        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();
        }