Represents a range of dates with optional start and end. Used as the value of RadzenDateRangePicker.
Object
Namespace: Radzen
Assembly: Radzen.Blazor.dll
public class DateRangeInitializes a new empty instance of the DateRange class.
public DateRange()Initializes a new empty instance of the DateRange class.
public DateRange(DateTime? start, DateTime? end)
| Type | Name | Description |
|---|---|---|
| DateTime? | start | |
| DateTime? | end |
Gets or sets the end date of the range.
public DateTime? End { get; set; }
| Type | Description |
|---|---|
| DateTime? | Gets or sets the end date of the range. |
Gets or sets the start date of the range.
public DateTime? Start { get; set; }
| Type | Description |
|---|---|
| DateTime? | Gets or sets the start date of the range. |
Determines whether the specified DateRange has the same start and end dates.
public bool Equals(DateRange other)
| Type | Name | Description |
|---|---|---|
| DateRange | other | The range to compare with. |
| Type | Description |
|---|---|
| bool | true if both ranges have equal start and end dates; otherwise, false. |
Determines whether the specified DateRange has the same start and end dates.
public override bool Equals(object obj)
| Type | Name | Description |
|---|---|---|
| object | obj |
| Type | Description |
|---|---|
| bool | true if both ranges have equal start and end dates; otherwise, false. |
public override int GetHashCode()
| Type | Description |
|---|---|
| int |