Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 368
  • Last Modified:

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.

 
0
JaimeJegonia
Asked:
JaimeJegonia
1 Solution
 
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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now