Skip to content

Developer Function: Server Script: 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.

Supported Versions

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

Syntax

utilities.InRange(datetime);

Parameter

Parameter Type Required Overview
datetime DateTime Yes Datetime

Return Value

Return a boolean value indicating whether the range is valid.

Usage Example

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');
}