Click or drag to resize

Utils_OtherAdd Method (DateTimeOffset, Int32, Int32, Int32, Int32)

Adds the specified days, hours, minutes and seconds to the given date.

Namespace:  MicaSystems.Utils
Assembly:  MicaSystems.Utils (in MicaSystems.Utils.dll) Version: 1.0.0.0 (1.1.0.123)
Syntax
C#
public static DateTimeOffset Add(
	this DateTimeOffset date,
	int days,
	int hours = 0,
	int minutes = 0,
	int seconds = 0
)

Parameters

date
Type: SystemDateTimeOffset
days
Type: SystemInt32
hours (Optional)
Type: SystemInt32
minutes (Optional)
Type: SystemInt32
seconds (Optional)
Type: SystemInt32

Return Value

Type: DateTimeOffset

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DateTimeOffset. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also