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