> For the complete documentation index, see [llms.txt](https://april.gitbook.io/learning-js/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://april.gitbook.io/learning-js/untitled/15.9.md).

# 15.9 날짜 비교

비교 연산자를 이용해 어떤 날짜가 더 앞인지 단순 비교 가능

```javascript
const d1 = new Date(1996, 2, 1);
const d2 = new Date(2009, 4, 27);

d1 > d2 // false
d1 < d2 // true
```
