--- id: isSameOrBefore title: isSameOrBefore --- # Function: isSameOrBefore() ```ts function isSameOrBefore( date1, date2, options): boolean; ``` Defined in: [date/isSameOrBefore/isSameOrBefore.ts:19](https://github.com/TanStack/time/blob/main/packages/time/src/date/isSameOrBefore/isSameOrBefore.ts#L19) ## Parameters ### date1 [`DateInput`](../type-aliases/DateInput.md) ### date2 [`DateInput`](../type-aliases/DateInput.md) ### options [`IsSameOrBeforeOptions`](../interfaces/IsSameOrBeforeOptions.md) ## Returns `boolean`