Constructs a StartOfYear specifying a definition of
"years" that begin on the specified first day of the year.
Namespace: DegreeDays.TimeAssembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax public StartOfYear(
int monthOfYear,
int dayOfMonth
)
Public Sub New (
monthOfYear As Integer,
dayOfMonth As Integer
)
Parameters
- monthOfYear Int32
- A number between 1 and 12 (inclusive)
indicating the month of the year in which the "year" should start.
For example, if you're working with UK financial years, choose 4
to specify that your "years" start in April.
- dayOfMonth Int32
- A number between 1 and the number of days in
monthOfYear (inclusive) indicating which
day in monthOfYear should be taken as the
first day of the "year". Note that the upper limit for February
is 28, not 29, since February only has 29 days on leap years and a
StartOfYear must be applicable to all years.
Exceptions See Also