How to combine month and Year selected from diffrent Dropdowns and save in table in datetime format
<p>..............aspx page code.................</p>

<pre><code>&lt;tr&gt;
    &lt;td&gt;
        From Date
    &lt;/td&gt;
    &lt;td&gt;
        &lt;asp:DropDownList ID="drpFromMonth" runat="server"&gt;&lt;/asp:DropDownList&gt;
        &amp;nbsp;&amp;nbsp; &lt;asp:DropDownList ID="drpFromYear" runat="server"&gt;&lt;/asp:DropDownList&gt;
   &lt;/td&gt;
   &lt;td&gt;
       To Date
   &lt;/td&gt;
   &lt;td&gt;
       &lt;asp:DropDownList ID="drpToMonth" runat="server"&gt;&lt;/asp:DropDownList&gt;
    &amp;nbsp;&amp;nbsp; &lt;asp:DropDownList ID="drpToYear" runat="server"&gt;&lt;/asp:DropDownList&gt;
   &lt;/td&gt;
&lt;/tr&gt;
</code></pre>

<p>.........aspx.cs code........</p>

<p>//This is for populate dropdown.</p>

<pre><code>private void PopulateFromMonth() // Populate Month ... e.g. Jan
{
    try
    {
        Generic mGn = GenericBusiness&lt;object&gt;.GetGeneralList("Month");
        drpFromYear.DataSource = mGn.Result;
        drpFromYear.DataTextField = "ListItemName"; // Jan, Feb, etc ....
        drpFromYear.DataValueField = "ListItemValue"; // 1,2,3, etc ....
        drpFromYear.DataBind();
        drpFromYear.Items.Insert(0, GlobalValues.DRPSELECT);
        drpFromYear.Items[0].Value = "0";
    }
    catch (Exception ex)
    {
        throw ex;
    }
}

private void PopulateToMonth() // Populate Month ... e.g. Jan

{
    try
    {
        Generic mGn = GenericBusiness&lt;object&gt;.GetGeneralList("Month");
        drpFromYear.DataSource = mGn.Result;
        drpFromYear.DataTextField = "ListItemName"; // Jan, Feb, etc ....
        drpFromYear.DataValueField = "ListItemValue"; // 1,2,3, etc ....
        drpFromYear.DataBind();
        drpFromYear.Items.Insert(0, GlobalValues.DRPSELECT);
        drpFromYear.Items[0].Value = "0";
    }
    catch (Exception ex)
    {
        throw ex;
    }
}

private void PopulateFromYear() // Populate Year ... e.g. 2008, 2009, 2010
{
    try
    {
        Generic mGn = GenericBusiness&lt;object&gt;.GetGeneralList("PMSYear");
        drpFromYear.DataSource = mGn.Result;
        drpFromYear.DataTextField = "ListItemName"; // 2008,2009,2010, etc ....
        drpFromYear.DataValueField = "ListItemValue"; // 8,9,10, etc ....
        drpFromYear.DataBind();
        drpFromYear.Items.Insert(0, GlobalValues.DRPSELECT);
        drpFromYear.Items[0].Value = "0";
    }
    catch (Exception ex)
    {
        throw ex;
    }
}

private void PopulateToYear() // Populate Year ... e.g. 2008, 2009, 2010
{
    try
    {
        Generic mGn = GenericBusiness&lt;object&gt;.GetGeneralList("PMSYear");
        drpToYear.DataSource = mGn.Result;
        drpToYear.DataTextField = "ListItemName"; // 2008,2009,2010, etc ....
        drpToYear.DataValueField = "ListItemValue"; // 8,9,10, etc ....
        drpToYear.DataBind();
        drpToYear.Items.Insert(0, GlobalValues.DRPSELECT);
        drpToYear.Items[0].Value = "0";
    }
    catch (Exception ex)
    {
        throw ex;
    }
}
</code></pre>

<p>public void btnAdd_Click(...)
{
   dr.FromDate = ?
   dr.ToDate = ?
}</p>

<p>Please help me out how it is possible to assign proper date time to dr.FromDate &amp; dr.ToDate</p>
