DateTimeMathRoundDownYears Method |
Rounds down the date so that it starts at the first day of a year and is less than or equal to x.
The resulting year number then is k*n, with k being an integer.
Namespace: Altaxo.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static DateTime RoundDownYears(
DateTime x,
int n
)
Parameters
- x DateTime
- The date.
- n Int32
- The number of years to round down. Must be greater than or equal to 1.
Return Value
DateTimeA date <=
x, and with a year number which is k*
n.
See Also