Click or drag to resize

Utils_OtherAdd Method (DateTime, 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 DateTime Add(
	this DateTime date,
	int days,
	int hours = 0,
	int minutes = 0,
	int seconds = 0
)

Parameters

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

Return Value

Type: DateTime

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DateTime. 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