answersLogoWhite

0

The method Substract() of DateTime class, the result is not a DateTime, but a TimeSpan. (If substract by a TimeSpan, then the function returns a DateTime)

Example:

DateTime aprilFool2010 = DateTime.Parse("2010-04-01");

DateTime aprilFool2011 = DateTime.Parse("2011-04-01");

Console.WriteLine(aprilFool2011.Subtract(aprilFool2010)); //365.00:00:00

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What is the expiration date code for the keyword "code" in this system?

The expiration date code for the keyword "code" in this system is not specified.


How do you get System date in ASP Application I need the code?

Now or Date can be used to get the curret system date...


What is a warranty date code on a phone?

The "warranty date code" is the date that the phone was activated/purchased.


When is the expiration date of the code?

When does the code expire?


What is date of manufacture for Rem model 121 with BF code?

You might try the date system on Remington's web site here... http://www.remingtonsociety.com/questions/BLACKPOWDERX.htm ....and possibly find your answer.


What is the out of date code date on heineken beer?

1020528e0426


What do the codes mean on Wilson footballs?

On Wilson footballs, the dating code is displayed on footballs. The first code stands for the date, the second code stands for the month, and the last letter represents the year. Wilson began their dating system in 1988.


What is age of a 30-06 browning A-bolt serial 50832pu717?

Your A Bolt is the Hunter Model. The letter U is not used in Browning's date code system. It is most likely a V. PV would date to 1985.


How do you find the manufacture date of a remington shotgun?

Date code stamp on barrel if 1921 or later, before that serial no. See related links for date code info.


What information can be found on the Schwinn date code chart?

The Schwinn date code chart provides information about the manufacturing date of a Schwinn bicycle based on the serial number.


What is the code in order to win a date with Justin Bieber?

the answer is nothing there is no code


How is a date translated into Morse code?

Numbers have their own set of code.