Date Time Extensions.Start Of Year Method
Returns the start of the year that contains the specified instant.
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
The instant at the start of the year that contains date.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
public static DateTime StartOfYear(
this DateTime date
)
Parameters
- date DateTime
- An instant.
Return Value
DateTimeThe instant at the start of the year that contains date.