Developer Function: Server Script: utilities.InRange
## Overview
Check whether the datetime specified in the "[Server Script](/en/manual/table-management-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
1. 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');
}
```
## Related Information
<div id="ManualList"><ul><li><a href="/en/manual/table-management-server-script">Table Management: Server Script</a><span>08.13.2024 up</span></li></ul></article></div><input id="SearchTextHidden" type="hidden" value="" />