Class LocalDateConstruction
Extension methods for constructing LocalDate values in the ISO calendar.
Since 2.0.x
Availability netstandard2.0
Inherited Members
Namespace: NodaTime.Testing.Extensions
Assembly: NodaTime.Testing.dll
Syntax
public static class LocalDateConstruction
Methods
April(int, int)
Constructs a LocalDate in April on the given day and year.
Since 2.0.x
Availability netstandard2.0
Declaration
public static LocalDate April(this int day, int year)
Parameters
Type | Name | Description |
---|---|---|
int | day | The day of April for the new date |
int | year | The year for the new date |
Returns
Type | Description |
---|---|
LocalDate | The specified date in April. |
Examples
var date = 1.April(2017);
August(int, int)
Constructs a LocalDate in August on the given day and year.
Since 2.0.x
Availability netstandard2.0
Declaration
public static LocalDate August(this int day, int year)
Parameters
Type | Name | Description |
---|---|---|
int | day | The day of August for the new date |
int | year | The year for the new date |
Returns
Type | Description |
---|---|
LocalDate | The specified date in August. |
Examples
var date = 1.August(2017);
December(int, int)
Constructs a LocalDate in December on the given day and year.
Since 2.0.x
Availability netstandard2.0
Declaration
public static LocalDate December(this int day, int year)
Parameters
Type | Name | Description |
---|---|---|
int | day | The day of December for the new date |
int | year | The year for the new date |
Returns
Type | Description |
---|---|
LocalDate | The specified date in December. |
Examples
var date = 1.December(2017);
February(int, int)
Constructs a LocalDate in February on the given day and year.
Since 2.0.x
Availability netstandard2.0
Declaration
public static LocalDate February(this int day, int year)
Parameters
Type | Name | Description |
---|---|---|
int | day | The day of February for the new date |
int | year | The year for the new date |
Returns
Type | Description |
---|---|
LocalDate | The specified date in February. |
Examples
var date = 1.February(2017);
January(int, int)
Constructs a LocalDate in January on the given day and year.
Since 2.0.x
Availability netstandard2.0
Declaration
public static LocalDate January(this int day, int year)
Parameters
Type | Name | Description |
---|---|---|
int | day | The day of January for the new date |
int | year | The year for the new date |
Returns
Type | Description |
---|---|
LocalDate | The specified date in January. |
Examples
var date = 1.January(2017);
July(int, int)
Constructs a LocalDate in July on the given day and year.
Since 2.0.x
Availability netstandard2.0
Declaration
public static LocalDate July(this int day, int year)
Parameters
Type | Name | Description |
---|---|---|
int | day | The day of July for the new date |
int | year | The year for the new date |
Returns
Type | Description |
---|---|
LocalDate | The specified date in July. |
Examples
var date = 1.July(2017);
June(int, int)
Constructs a LocalDate in June on the given day and year.
Since 2.0.x
Availability netstandard2.0
Declaration
public static LocalDate June(this int day, int year)
Parameters
Type | Name | Description |
---|---|---|
int | day | The day of June for the new date |
int | year | The year for the new date |
Returns
Type | Description |
---|---|
LocalDate | The specified date in June. |
Examples
var date = 1.June(2017);
March(int, int)
Constructs a LocalDate in March on the given day and year.
Since 2.0.x
Availability netstandard2.0
Declaration
public static LocalDate March(this int day, int year)
Parameters
Type | Name | Description |
---|---|---|
int | day | The day of March for the new date |
int | year | The year for the new date |
Returns
Type | Description |
---|---|
LocalDate | The specified date in March. |
Examples
var date = 1.March(2017);
May(int, int)
Constructs a LocalDate in May on the given day and year.
Since 2.0.x
Availability netstandard2.0
Declaration
public static LocalDate May(this int day, int year)
Parameters
Type | Name | Description |
---|---|---|
int | day | The day of May for the new date |
int | year | The year for the new date |
Returns
Type | Description |
---|---|
LocalDate | The specified date in May. |
Examples
var date = 1.May(2017);
November(int, int)
Constructs a LocalDate in November on the given day and year.
Since 2.0.x
Availability netstandard2.0
Declaration
public static LocalDate November(this int day, int year)
Parameters
Type | Name | Description |
---|---|---|
int | day | The day of November for the new date |
int | year | The year for the new date |
Returns
Type | Description |
---|---|
LocalDate | The specified date in November. |
Examples
var date = 1.November(2017);
October(int, int)
Constructs a LocalDate in October on the given day and year.
Since 2.0.x
Availability netstandard2.0
Declaration
public static LocalDate October(this int day, int year)
Parameters
Type | Name | Description |
---|---|---|
int | day | The day of October for the new date |
int | year | The year for the new date |
Returns
Type | Description |
---|---|
LocalDate | The specified date in October. |
Examples
var date = 1.October(2017);
September(int, int)
Constructs a LocalDate in September on the given day and year.
Since 2.0.x
Availability netstandard2.0
Declaration
public static LocalDate September(this int day, int year)
Parameters
Type | Name | Description |
---|---|---|
int | day | The day of September for the new date |
int | year | The year for the new date |
Returns
Type | Description |
---|---|
LocalDate | The specified date in September. |
Examples
var date = 1.September(2017);