# areDatesEqual

Industry: Core

## Signature

```ts
areDatesEqual(value1: string, value2: string): boolean
```

Compare two ISO date-like strings for equality, ignoring time components.

- Accepts both PlainDate and PlainDateTime strings.
- Extracts date components only for comparison.
- Returns false if either input is invalid.

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| `value1` | `string` | ISO date-like string |
| `value2` | `string` | ISO date-like string |

## Returns

true if the dates are equal, false otherwise

## Examples

```ts
import { areDatesEqual } from "@northguild/gmt/plain/compare";

areDatesEqual("2024-02-29", "2024-02-29T12:34:56") // true
```

## Source

[plain/compare/areDatesEqual.ts](https://github.com/northguild/gmt/blob/main/packages/gmt/src/plain/compare/areDatesEqual.ts)
