Hi guys,

How can I auto populate these two text boxes with the date? Let us say Textbox1 will be automatically populated with the date 30 days earlier from the current date we have that can be found in TextBox2. To make it more clear:

Code:
Textbox1.Text = '12/13/2008'
Textbox2.Text = '1/13/2009
Those two text boxes are automatically populated under:

Code:
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DateTime date = DateTime.Now();
            TextBox2.Text = date;
            DateTime earlydate = date - 30 days;
            TextBox1.Text = earlydate
        }
    }
Thanks in advance