how to concat date and time in c#?
<p>Higuys,</p>

<p>I have a Textbox where user choose <strong>a date</strong> (MM/dd/yyyy) and another TextBox where choose inserts <strong>time</strong> (hh:mm).</p>

<pre><code>&lt;tr&gt;
            &lt;td&gt;
                &lt;asp:Label ID="Label1" runat="server" CssClass="cp_title"&gt;Event Date:&lt;/asp:Label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;asp:Label ID="Label2" runat="server" CssClass="cp_title"&gt;Event Time(hh:mm):&lt;/asp:Label&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;asp:TextBox ID="txtEventDate" runat="server"&gt;
                &lt;/asp:TextBox&gt;
                &lt;cc1:CalendarExtender ID="cldEventDate" runat="server" TargetControlID="txtEventDate"
                    PopupPosition="BottomLeft" Format="MM/dd/yyyy"&gt;
                &lt;/cc1:CalendarExtender&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;asp:TextBox runat="server" ID="txtEventTime"&gt;&lt;/asp:TextBox&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
</code></pre>

<p>In the database I have a <strong>single column for DateTime</strong> so I have to "concatenate" the user input into a real datetime format...</p>

<p>I see a constructor for DateTime which takes as args: <em>year, month, day, hour, minute, second,</em> but this requires me to parse user input and split in these periods....</p>

<p>Do you know an easier solution?</p>
