DateTime.AddDays() doesnt work?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to add days to a DateTime variable, but even after calling the AddDays
function on it the value has not changed. The following code illustrates:

DateTime ReturnVal = new DateTime(2006,01,01);
ReturnVal.AddDays(1);

Is there another way to go about this, or am i doing something wrong?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top