
**Inheritance:**
java.lang.Object
```
public final class DateRange
```

Represents the date range
## Constructors

| Constructor | Description |
| --- | --- |
| [DateRange(Date startTime, Date endTime)](#DateRange-java.util.Date-java.util.Date-) | Initializes a new instance of the [DateRange](../../com.aspose.email/daterange) class |
| [DateRange()](#DateRange--) | Initializes a new instance of the [DateRange](../../com.aspose.email/daterange) class |
## Methods

| Method | Description |
| --- | --- |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [getClass()](#getClass--) |  |
| [getEndTime()](#getEndTime--) | Gets or sets the end of a time period. |
| [getStartTime()](#getStartTime--) | Gets or sets the start of a time period. |
| [hashCode()](#hashCode--) |  |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [setEndTime(Date value)](#setEndTime-java.util.Date-) | Gets or sets the end of a time period. |
| [setStartTime(Date value)](#setStartTime-java.util.Date-) | Gets or sets the start of a time period. |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### DateRange(Date startTime, Date endTime) {#DateRange-java.util.Date-java.util.Date-}
```
public DateRange(Date startTime, Date endTime)
```


Initializes a new instance of the [DateRange](../../com.aspose.email/daterange) class

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startTime | java.util.Date | Specifies the start of a time period. |
| endTime | java.util.Date | Specifies the end of a time period. |

### DateRange() {#DateRange--}
```
public DateRange()
```


Initializes a new instance of the [DateRange](../../com.aspose.email/daterange) class

### equals(Object arg0) {#equals-java.lang.Object-}
```
public boolean equals(Object arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | java.lang.Object |  |

**Returns:**
boolean
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**Returns:**
java.lang.Class<?>
### getEndTime() {#getEndTime--}
```
public final Date getEndTime()
```


Gets or sets the end of a time period.

**Returns:**
java.util.Date
### getStartTime() {#getStartTime--}
```
public final Date getStartTime()
```


Gets or sets the start of a time period.

**Returns:**
java.util.Date
### hashCode() {#hashCode--}
```
public native int hashCode()
```




**Returns:**
int
### notify() {#notify--}
```
public final native void notify()
```




### notifyAll() {#notifyAll--}
```
public final native void notifyAll()
```




### setEndTime(Date value) {#setEndTime-java.util.Date-}
```
public final void setEndTime(Date value)
```


Gets or sets the end of a time period.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.util.Date |  |

### setStartTime(Date value) {#setStartTime-java.util.Date-}
```
public final void setStartTime(Date value)
```


Gets or sets the start of a time period.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.util.Date |  |

### toString() {#toString--}
```
public String toString()
```




**Returns:**
java.lang.String
### wait() {#wait--}
```
public final void wait()
```




### wait(long arg0) {#wait-long-}
```
public final native void wait(long arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}
```
public final void wait(long arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |

