Skip to content

utilities.InRange

Overview

Check whether the datetime specified in the "Server Script" is within the valid range of dates and times that Pleasanter can handle.

Syntax

utilities.InRange(datetime);

Parameters

Parameter Type Required Overview
datetime DateTime Yes Datetime

Return Value

Return a boolean value indicating whether the range is valid.

Usage Examples

In the following example, a log will be output if DateA contains a valid datetime.

JavaScript
if (utilities.InRange(model.DateA)) {
    context.Log('In range');
}

Supported Versions

  1. Pleasanter 1.1.39.0 or later
  2. Pleasanter .NET Framework version 0.50.263 or later