operator+()

DateTime::operator+(TimeSpan) const method

Returns a new instance of DateTime class that represents the date and time value that is the sum of the value represented by the current object and the specified time span.

DateTime System::DateTime::operator+(TimeSpan value) const

Arguments

ParameterTypeDescription
valueTimeSpanThe time span to add to the value represented by the current object

Return Value

A new instance of DateTime class that represents the date and time value that is the sum of the value represented by the current object and value.

See Also