Skip to content

Main content

Calendar Interval Single Month Containment Tool

Calculate calendar interval single month containment from explicit caller-supplied inputs.

Loading tool…

Description

Check whether a half-open date interval stays within one month.

Date labels and intervals depend on origins, endpoint inclusion and calendar versus elapsed-time conventions. Numeric serial periods and local token formats can represent useful bookkeeping without resolving a real instant or official fiscal rule.

Check whether a half-open date interval stays within one month.

When to use this tool

Use Calendar Interval Single Month Containment when checking a supplied date-label, duration or interval convention.

How to use the tool and how it works

  1. Enter start, endExclusive. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read contained, empty. Inspect contained, empty before interpreting the associated values.

Check whether a half-open date interval stays within one month. Validate start <= endExclusive; empty intervals are contained, otherwise compare start's month/year with the day before endExclusive.1

Input fieldMeaning and unitsAccepted input
startStartRequired. Text; maximum UTF-16 length 8192. Real proleptic Gregorian YYYY-MM-DD; four-digit years 0000-9999 accepted.
endExclusiveEnd ExclusiveRequired. Text; maximum UTF-16 length 8192. Real proleptic Gregorian YYYY-MM-DD; four-digit years 0000-9999 accepted.
Output fieldInterpretationReturned shape
containedEmpty half-open interval is always treated as contained; otherwise compare start with the final included day.Required. Boolean.
emptyEmptyRequired. Boolean.
json
{
  "input": {
    "start": "2026-10-01",
    "endExclusive": "2026-11-01"
  },
  "output": {
    "contained": true,
    "empty": false
  }
}

Limitations and assumptions

  • An exclusive endpoint on the next month's first day does not itself cross the counted interval.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.

Alternative or Complementary methods

Use a complete date/time implementation and the applicable calendar policy for actual scheduling and interval interpretation.

References

  1. Calculation and input contract: date/calendar-interval-single-month-containment — tool.io

Similar or alternative tools