getting one day before of system date

This is a discussion on getting one day before of system date within the C# Programming forums, part of the General Programming Boards category; i want to get the one day before of the system's date by using the DateTime? how can i do ...

  1. #1
    Registered User Aga^^'s Avatar
    Join Date
    Aug 2008
    Posts
    71

    getting one day before of system date

    i want to get the one day before of the system's date by using the DateTime?

    how can i do it?

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Check out the method AddDays, it also accepts negative values (*hint*).
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    Registered User Aga^^'s Avatar
    Join Date
    Aug 2008
    Posts
    71
    ok i got it ! thanks magos

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting system Date
    By Sridar in forum C++ Programming
    Replies: 4
    Last Post: 08-10-2005, 08:51 PM
  2. Replies: 4
    Last Post: 06-13-2005, 09:03 AM
  3. bad system date
    By Silvercord in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 04-30-2003, 08:29 AM
  4. error with code
    By duffy in forum C Programming
    Replies: 8
    Last Post: 10-22-2002, 09:45 PM
  5. System Date
    By Unregistered in forum C++ Programming
    Replies: 3
    Last Post: 08-28-2001, 06:03 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21