System::DateTime::Add method

DateTime::Add method

Returns a new instance of DateTime class that represents a date and time value that results from addition of the specified time span to the date and time value represented by the current object.

DateTime System::DateTime::Add(TimeSpan value) const
ParameterTypeDescription
valueTimeSpanThe time interval to add

ReturnValue

A new instance of DateTime class that represents a date and time value that results from addition of tm time span to the date and time value represented by the current object

See Also