DateTime.now - 30 (days)

  • Thread starter Thread starter Rene A
  • Start date Start date
R

Rene A

Hi,

I want to get the current date minus 60 days, how can i do that.
This is what i have /want:

DateTime now = DateTime.Now;

Result = DateTime.Now.ToString("yyyyMMdd") + "')-60;

it must also work when the current date is in January.

Any tips are welcome.

Groetjes Rene.
 

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

Similar Threads

DateTime.Now not working? 6
TimeSpan object question 6
Time Comparision in C# 5
Q: Simple DateTime question! 1
Questions DateTime.Now 3
Time of day 4
Expand Range into List 2
Convert date() to DateTime format 1

Back
Top