DateTimeExtensions.StartOfDay Method

Returns the start of the day that contains the specified instant.


Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static DateTime StartOfDay(
	this DateTime date


date  DateTime
An instant.

Return Value

The instant at the beginning of the day that contains date.

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