DateRange (Java™)
Represents a range of dates and times.
Syntax
public class DateRange extends Base
Containment
Contained by: Session
Contains: DateTime
Properties
EndDateTime through getEndDateTime and setEndDateTime
Parent through getParent
StartDateTime through getStartDateTime and setStartDateTime
Text through getText and setText
Methods
recycle
toString
Creation
To create a new DateRange object, use createDateRange in Session. To initialize the object, you can do one of the following:
- Assign values to the createDateRange parameters.
- Assign to StartDateTime and EndDateTime DateTime values.
- Assign to Text a string value that represents a date range. This consists of two string representations of Domino-formatted date-time values separated by a hyphen (for example, "01/01/97 - 01/02/97").
Usage
When you assign StartDateTime or EndDateTime, its value replaces the corresponding value in Text, and vice versa.