Custom DateAdd Function

Dear Experts,

I've been searching for Date Add function for C# but to no avail, is there anyone can provide me this functionality.


Thanks.

 
JaimeJegoniaAsked:
Who is Participating?
 
bruintjeCommented:
Hi JaimeJegonia,
----------

excellent source here for looking equivalents
http://authors.aspalliance.com/remas/ASP.NET/ASPClassic/VBScriptAE/

DateTime dtTomorrow;
dtTomorrow = DateTime.Today.AddDays(1);

you can also use
DateTime.Today.AddMonths(1);
DateTime.Today.AddYears(1);
or hours etc....

----------
bruintje
share what you know, learn what you don't
0
 
JaimeJegoniaAuthor Commented:
bruintje,

Great! That's what I'm looking for.


Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.