Author: demoninside9 | Posted on: 9/25/2009 1:53:12 AM | Views : 1019

Hi all,
       I wan to  minus one date to another my code block is
            DateTime dt1 =Convert.ToDateTime(dt.Rows[0]["LastDateSubmit"]);
            lblDateSub.Text = dt1.ToString("dd/MM/yyyy");
            DateTime today = DateTime.Now;
            
            if ( dt1.Subtract(today)>3)
            {
                lblDatelast3.Text = lblDateSub.Text;
            }
            else Go to the complete details ...