R
radiolandog
I am getting a DateTime value from a Calendar Control. It returns the date
at midnight. I want to add some hours to the value before I display it in a
text box.
C# back end to a web form - here's the code
-------------------------------------------------------------------------------------
private DateTime startTime;
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
startTime = Calandar1.SelectedDate;
startTime.AddHours(8.5);
startDateTextBox.Text = startTime.ToString();
at midnight. I want to add some hours to the value before I display it in a
text box.
C# back end to a web form - here's the code
-------------------------------------------------------------------------------------
private DateTime startTime;
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
startTime = Calandar1.SelectedDate;
startTime.AddHours(8.5);
startDateTextBox.Text = startTime.ToString();