Partager via


DateTime.Subtract Method

Subtracts either a time period or another DateTime object from the current DateTime object.

Overload List

Name Description
DateTime.Subtract (DateTime) Subtracts a specified DateTime object from the current DateTime object, yielding a specific period of time.
DateTime.Subtract (TimeSpan) Subtracts a specified time period from the current DateTime object, yielding a new DateTime object.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

DateTime Structure
DateTime Members
System Namespace