AnnualDate InYear Method Noda Time

[This is preliminary documentation and is subject to change.]

Returns this annual date in a particular year, as a LocalDate.

Namespace: NodaTime
Assembly: NodaTime (in NodaTime.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax

public LocalDate InYear(
	int year
)

Parameters

year
Type: OnlineSystem Int32
The year component of the required date.

Return Value

Type: LocalDate
A date in the given year, suitable for this annual date.
Remarks

If this value represents February 29th, and the specified year is not a leap year, the returned value will be February 28th of that year. To see whether the original month and day is valid without truncation in a particular year, use IsValidYear(Int32)

Version Information

Available since: 2.0.0
Supported in the PCL? Yes
See Also