Share 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 .NET Micro Framework version 2.0, 2.5

See Also

Reference

DateTime Structure
DateTime Members
System Namespace