System::DateTimeOffset::ToOffset method

DateTimeOffset::ToOffset method

Replace current object offset by the specified offset.

DateTimeOffset System::DateTimeOffset::ToOffset(TimeSpan offset) const
ParameterTypeDescription
offsetTimeSpanUTC-offset.

ReturnValue

Current DateTimeOffset object converted to the date and time with specified offset.

See Also