Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DateTime::Subtraction Operator

 

Subtracts a specified DateTime orTimeSpan from a specified DateTime.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticSubtraction(DateTime, DateTime)

Subtracts a specified date and time from another specified date and time and returns a time interval.

System_CAPS_puboperatorSystem_CAPS_staticSubtraction(DateTime, TimeSpan)

Subtracts a specified time interval from a specified date and time and returns a new date and time.

Return to top
Show:
© 2017 Microsoft