Skip to content

is_date_in_range

Syntax

is_date_in_range(date1, date2)

Parameters

date1
A fixed string of the form MMM-DDD where MMM is a three letter abreviated for the name of a month, and DD is a two digit day-of the month.
date2
A fixed string of the form MMM-DDD where MMM is a three letter abreviated for the name of a month, and DD is a two digit day-of the month.

Description

Tests whether the simulation date falls in a given range of calendar dates.

True if the simulation date falls in the given range of dates, inclusive.

A compilation area occurs if the date arguments cannot be parsed.

Examples

For example, the following predicate is true if the current simulation date is between December 10 and January 1, including those dates:

if (is_date_in_range(Dec-10,Jan-01)) ...