# isAfterDate

Industry: Core

## Signature

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

Return true if the first ISO PlainDate string represents a date after the second.

- Uses Temporal.PlainDate.compare to compare dates.
- Returns false if either input is invalid.

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| `value1` | `string` | first ISO PlainDate string |
| `value2` | `string` | second ISO PlainDate string |

## Returns

boolean indicating whether value1 is after value2

## Examples

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

isAfterDate("2024-03-01", "2024-02-29") // true
```

## Source

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