Modules

filter

 

Objects/Functions

module (N/query)

SuiteScript 2.0

RelativeDate.isRange

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=RelativeDate.isRange for more information.

N/query Module
RelativeDate.isRange
Property Description: Whether the relative date represents a range of dates or a specific moment in time. For relative date ranges that you obtain from the query.RelativeDateRange enum, the value of this property is true (the relative date represents a range of dates). For all other relative dates (such as those that you create using query.createRelativeDate(options)), the value of this property is false (the relative date represents a specific moment in time).
Type: boolean (read-only)
Module: N/query Module
Parent Object: query.RelativeDate
Sibling Object Members: RelativeDate Object Members
Since: 2019.1
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=RelativeDate.isRange

Example:

// Code Example 1
// Add additional code
//...
var myRelativeDate = query.createRelativeDate({
dateId: query.DateId.WEEKS_AGO,
value: 2
});

// isARange is false
var isARange = myRelativeDate.isRange;

// isAnotherRange is true
var isAnotherRange = query.RelativeDateRange.LAST_MONTH_ONE_FISCAL_YEAR_AGO.isRange;
//...
// Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_1552334952.html