# plain/compare

Industry: Core

- [`areDatesEqual`](/gmt/reference/plain/compare/areDatesEqual/): Compare two ISO date-like strings for equality, ignoring time components.
- [`areDatesEqualBy`](/gmt/reference/plain/compare/areDatesEqualBy/): Compare two ISO date strings for equality at a given calendar unit.
- [`areDateTimesEqual`](/gmt/reference/plain/compare/areDateTimesEqual/): Return true if two PlainDateTime ISO strings represent the same instant of local date/time components.
- [`areDateTimesEqualBy`](/gmt/reference/plain/compare/areDateTimesEqualBy/): Compare two ISO datetime strings for equality at a given unit.
- [`areMonthDaysEqual`](/gmt/reference/plain/compare/areMonthDaysEqual/): Check whether two month-day strings (`--MM-DD`, or `MM-DD`) name the same day of the year.
- [`areTimesEqual`](/gmt/reference/plain/compare/areTimesEqual/): Return true if two PlainTime ISO strings represent the same time components.
- [`areYearMonthsEqual`](/gmt/reference/plain/compare/areYearMonthsEqual/): Check whether two year-month strings (`YYYY-MM`) name the same year and month.
- [`compareMonthDays`](/gmt/reference/plain/compare/compareMonthDays/): Compare two month-day strings (`--MM-DD`, or `MM-DD`) in calendar order: month first, then day.
- [`compareYearMonths`](/gmt/reference/plain/compare/compareYearMonths/): Compare two year-month strings (`YYYY-MM`) in calendar order: year first, then month.
- [`isAfterDate`](/gmt/reference/plain/compare/isAfterDate/): Return true if the first ISO PlainDate string represents a date after the second.
- [`isAfterDateTime`](/gmt/reference/plain/compare/isAfterDateTime/): Return true when `value1` is strictly after `value2` for PlainDateTime values.
- [`isAfterTime`](/gmt/reference/plain/compare/isAfterTime/): Return true when `value1` is strictly after `value2` for PlainTime values.
- [`isBeforeDate`](/gmt/reference/plain/compare/isBeforeDate/): Return true when `value1` is strictly before `value2` for PlainDate values.
- [`isBeforeDateTime`](/gmt/reference/plain/compare/isBeforeDateTime/): Return true when `value1` is strictly before `value2` for PlainDateTime values.
- [`isBeforeTime`](/gmt/reference/plain/compare/isBeforeTime/): Return true when `value1` is strictly before `value2` for PlainTime values.
- [`isBetweenDate`](/gmt/reference/plain/compare/isBetweenDate/): Return true when `date` is between `start` and `end` (inclusive by default).
- [`isBetweenDateTime`](/gmt/reference/plain/compare/isBetweenDateTime/): Return true when `dateTime` is between `start` and `end` (inclusive by default).
- [`isBetweenTime`](/gmt/reference/plain/compare/isBetweenTime/): Return true when `time` is between `start` and `end` (inclusive by default).
- [`isBusinessDay`](/gmt/reference/plain/compare/isBusinessDay/): Return true when `value` is a working day in `calendar`.
- [`isFuture`](/gmt/reference/plain/compare/isFuture/): Return true when `value` is strictly after today, per the system clock and system timeZone.
- [`isPast`](/gmt/reference/plain/compare/isPast/): Return true when `value` is strictly before today, per the system clock and system timeZone.
- [`isRelativeDay`](/gmt/reference/plain/compare/isRelativeDay/): Return true when `value` falls `offsetDays` days from today, per the system clock and system timeZone.
- [`isThisUnit`](/gmt/reference/plain/compare/isThisUnit/): Return true when `value` falls in the same `unit` as today, per the system clock and system timeZone.
- [`isWeekend`](/gmt/reference/plain/compare/isWeekend/): Return true when `value` falls on a weekend day for `locale`.
