I am trying to add a day to a date retrieved as below
//reading fromdatabase
Dim expenddt_ As String = rdr("Expected_End_Date").ToString
Dim dt_1 As Date = Date.Parse(expenddt_)
Dim expenddt As String = dt_1.ToShortDateString()
txtenddt.Text = expenddt
Suppose if expenddt_ the value comes as “11/1/2012 12:00:00 AM”, than dt_1 has the value #11/1/2012# and expenddt has “11/1/2012” so in textbox txtenddt the value appears as expenddt.
Now when i try to add a day to dt_1 as
Dim test As Date = dt_1.AddDays(+1)
Than the value in test comes as 11/2/2012, i.e a month gets added and not the day. How can i add a day?can anyone help me with this issue?
here is a simple example:
SOURCE