# our-dates

> A simple date utility library for Javascript

Latest version **1.0.7** (published 2023-10-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install our-dates
pnpm add our-dates
yarn add our-dates
bun add our-dates
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2023-10-06 |
| First published | 2023-03-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 57.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Álvaro Emanuel |
| Maintainers | alvaroemanuel20 |
| Keywords | date, our-dates, date-library, library, utilities, format date, date-fns, moment |

## Links

- npm: https://www.npmjs.com/package/our-dates
- Repository: https://github.com/AlvaroEmanuel20/our-dates
- Homepage: https://ourdates.vercel.app/
- Issues: https://github.com/AlvaroEmanuel20/our-dates/issues
- npm.io page: https://npm.io/package/our-dates

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 1.0.7 (latest) — 2023-10-06
- 1.0.6 — 2023-05-22
- 1.0.5 — 2023-05-22
- 1.0.4 — 2023-05-22
- 1.0.3 — 2023-03-28
- 1.0.2 — 2023-03-28
- 1.0.1 — 2023-03-19
- 1.0.0 — 2023-03-11

## README

# Our Dates
A date utility library for simple use cases, zero dependency and lightweight.

[![License: MIT](https://img.shields.io/npm/l/our-dates?color=blueviolet)](LICENSE.md)
[![Current version](https://img.shields.io/npm/v/our-dates?color=blueviolet)](https://www.npmjs.com/package/our-dates)
[![Weekly downloads](https://img.shields.io/npm/dw/our-dates?color=blueviolet)](https://www.npmjs.com/package/our-dates)
[![install size](https://packagephobia.com/badge?p=our-dates)](https://packagephobia.com/result?p=our-dates)
[![sponsor this project](https://img.shields.io/badge/-%F0%9F%93%9A%20buy%20me%20a%20book-blueviolet)](https://www.buymeacoffee.com/alvaro1dias)

`our-dates` was created for some use cases and solve problems with fast and easy. Working with dates in programming and in severals situations are boring and confusing. With this library this task is more easy. You can handle dates, calculate differences between dates, convert dates, and more. In addition to being able to use some utility methods.

Read the documentation: [Documentation](https://ourdates.alvaroemanuel.tech/)

## Installation
`our-dates` can be installed with `yarn` or `npm`
```shell
# with yarn
yarn add our-dates
```

```shell
# with npm
npm install our-dates
```

## Usage

```javascript
import { differenceInHours } from 'our-dates';

const laterDate = new Date(2023, 4, 2, 15, 40);
const earlierDate = new Date(2023, 4, 2, 12, 40);
differenceInHours(laterDate, earlierDate) //3 hours
```
## Documentation

Read the documentation: [Documentation](https://ourdates.alvaroemanuel.tech/)
## Contact
- Github: [My Github](https://github.com/alvaroemanuel20)
- Linkedin: [My Linkedin](https://linkedin/in/alvaroemanuel20)
- Instagram: [@alvaro1dias](https://instagram.com/alvaro1dias)

---
_Source: https://npm.io/package/our-dates · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
