DateRange Class

Represents a range of dates with optional start and end. Used as the value of RadzenDateRangePicker.

Inheritance

Object

DateRange

Namespace: Radzen

Assembly: Radzen.Blazor.dll

Syntax

public class DateRange

Constructors

DateRangeLink to this section

Initializes a new empty instance of the DateRange class.

Declaration
public DateRange()

DateRangeLink to this section

Initializes a new empty instance of the DateRange class.

Declaration
public DateRange(DateTime? start, DateTime? end)
Parameters
Type Name Description
DateTime? start
DateTime? end

Properties

EndLink to this section

Gets or sets the end date of the range.

Declaration
public DateTime? End { get; set; }
Property Value
Type Description
DateTime?Gets or sets the end date of the range.

StartLink to this section

Gets or sets the start date of the range.

Declaration
public DateTime? Start { get; set; }
Property Value
Type Description
DateTime?Gets or sets the start date of the range.

Methods

EqualsLink to this section

Determines whether the specified DateRange has the same start and end dates.

Declaration
public bool Equals(DateRange other)
Parameters
Type Name Description
DateRange other The range to compare with.
Returns
Type Description
booltrue if both ranges have equal start and end dates; otherwise, false.

EqualsLink to this section

Determines whether the specified DateRange has the same start and end dates.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
object obj
Returns
Type Description
booltrue if both ranges have equal start and end dates; otherwise, false.

GetHashCodeLink to this section

Declaration
public override int GetHashCode()
Returns
Type Description
int
An error has occurred. This app may no longer respond until reloaded. Reload 🗙