<p align="center">
  <img src="https://raw.githubusercontent.com/mobily/rescript-date/master/assets/rescript-date-frame.png" width="480">
</p>
<p align="center">
  <a href="https://travis-ci.com/mobily/rescript-date">
    <img src="https://img.shields.io/travis/com/mobily/rescript-date.svg?style=flat-square&amp;logo=travis" alt="Build Status">
  </a>
  <a href="https://coveralls.io/github/mobily/rescript-date?branch=master">
    <img src="https://img.shields.io/coveralls/github/mobily/rescript-date.svg?style=flat-square&amp;logo=coveralls" alt="Coverage">
  </a>
  <a href="https://www.npmjs.com/package/@mobily/rescript-date">
    <img src="https://img.shields.io/npm/v/@mobily/rescript-date.svg?style=flat-square&amp;logo=npm" alt="npm">
  </a>
  <a href="http://makeapullrequest.com">
    <img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square" alt="PRs Welcome">
  </a>
  <a href="#contributors">
    <img src="https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square" alt="All Contributors">
  </a>
  <a href="https://github.com/mobily/rescript-date/blob/master/LICENSE">
    <img src="https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square" alt="GitHub license">
  </a>
</p>


<p align="center">
  <strong>Date manipulation in ReScript with the same modern and convenient API as <code>date-fns</code>.</strong>
</p>

## Getting started

### Installation

```shell
yarn add @mobily/rescript-date
```

or with `npm`

```shell
npm install @mobily/rescript-date --save
```

### ReScript config

Add `@mobily/rescript-date` to `bs-dependencies` in your `bsconfig.json`:

```json
{
  "bs-dependencies": [
    "@mobily/rescript-date"
  ]
}
```

## Api Reference

Full documentation can be found [here](https://mobily.github.io/rescript-date).

## Contributors

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
  <tr>
    <td align="center"><a href="https://twitter.com/__marcin_"><img src="https://avatars1.githubusercontent.com/u/1467712?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Marcin Dziewulski</b></sub></a><br /><a href="https://github.com/mobily/re-date/commits?author=mobily" title="Code">💻</a> <a href="https://github.com/mobily/re-date/commits?author=mobily" title="Documentation">📖</a> <a href="#design-mobily" title="Design">🎨</a> <a href="https://github.com/mobily/re-date/commits?author=mobily" title="Tests">⚠️</a></td>
    <td align="center"><a href="http://radoslawkoziel.pl"><img src="https://avatars3.githubusercontent.com/u/1303365?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Radek Kozieł</b></sub></a><br /><a href="https://github.com/mobily/re-date/commits?author=panr" title="Code">💻</a></td>
    <td align="center"><a href="https://github.com/mikaello"><img src="https://avatars3.githubusercontent.com/u/2505178?v=4?s=100" width="100px;" alt=""/><br /><sub><b>mikaello</b></sub></a><br /><a href="https://github.com/mobily/re-date/commits?author=mikaello" title="Code">💻</a> <a href="https://github.com/mobily/re-date/commits?author=mikaello" title="Documentation">📖</a> <a href="https://github.com/mobily/re-date/commits?author=mikaello" title="Tests">⚠️</a></td>
    <td align="center"><a href="http://decapode314.free.fr/ocaml/"><img src="https://avatars.githubusercontent.com/u/2274092?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Florent Monnier</b></sub></a><br /><a href="https://github.com/mobily/re-date/commits?author=fccm" title="Code">💻</a></td>
  </tr>
</table>

<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->

<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!

## License

The MIT License.

See [LICENSE](LICENSE)
