DateTime [ Last week , Last month periods ]
<p>I need to setup last week , last month periods on changing dropdownlist</p>

<p>I'm making </p>

<pre><code>        switch (DDL.SelectedIndex)
        {
            case 0:
                {
                    // last week
                    this.TextBox3.Text = DateTime. //Previos week first day
                    this.TextBox4.Text = DateTime. //Previos week last day
                } break;
            case 1:
                {
                    // last mouth
                    this.TextBox3.Text = DateTime.// Previos month first day
                    this.TextBox4.Text = DateTime.// Previos month last day
                } break;
}
</code></pre>

<p>So is there some ways how can I select date values like I want ?</p>

<p>also , I've got AJAX calendar extender on text boxes</p>

<p>thank you.</p>
