# date-utils

> Date add-ons for Node.js

Latest version **1.2.21** (published 2016-04-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install date-utils
pnpm add date-utils
yarn add date-utils
bun add date-utils
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.21 |
| Published | 2016-04-19 |
| First published | 2011-01-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/date-utils) |
| Module format | CommonJS |
| Node | >0.4.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 370 |
| Author | Jerry Sievert |
| Maintainers | jerrysievert |
| Keywords | date, utils, date-utils, time |

## Links

- npm: https://www.npmjs.com/package/date-utils
- Repository: https://github.com/JerrySievert/date-utils
- Homepage: https://jerrysievert.github.io/date-utils/
- Issues: http://github.com/JerrySievert/date-utils/issues
- npm.io page: https://npm.io/package/date-utils

## 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.2.21 (latest) — 2016-04-19
- 1.2.20 — 2016-04-18
- 1.2.19 — 2016-03-13
- 1.2.18 — 2016-01-17
- 1.2.17 — 2015-05-23
- 1.2.16 — 2014-06-16
- 1.2.15 — 2013-12-19
- 1.2.14 — 2013-08-08
- 1.2.13 — 2013-05-29
- 1.2.12 — 2012-11-03
- 1.2.11 — 2012-06-18
- 1.2.10 — 2012-03-11
- 1.2.9 — 2012-02-17
- 1.2.8 — 2012-02-13
- 1.2.7 — 2012-01-21
- … 16 more at https://npm.io/package/date-utils/versions

## README

# Date-Utils: Polyfills for the Date object

[![Build Status](https://secure.travis-ci.org/JerrySievert/date-utils.png)](http://travis-ci.org/JerrySievert/date-utils)

## NOTE

Version 2 Feature and Changes discussion is being held at https://github.com/JerrySievert/node-date-utils/issues/37

## In a nutshell

- Micro-Framework adding missing functionality to the Date object
- Useable as a polyfill in the browser
- Useable as a polyfill in Node.js
- Works in CouchDB

## Using within a Browser
    <script type="text/javascript" src="date-utils.min.js"></script>

## Using with Node.js
    $ npm install date-utils

    require('date-utils');

Note: This did not work in the `REPL` before `Node.js 0.6` due to how `Node.js` handles context in the `REPL`.

## Changing Languages
    require('date-utils').language("es")

Supported languages:

- Spanish - "es"
- French - "fr"
- Portuguese Brazilian - "pt-BR"

## Documentation

Documentation (nearing completion) can be found at https://jerrysievert.github.io/date-utils

## Development

Make sure you have [gulp](https://www.npmjs.org/package/gulp) installed (npm install gulp -g). After that hit `npm install` to get the dependencies. Finally, hit `gulp`. This will build the library initially. If you make changes to the library, it will compile the minified version automatically.

### Testing

```
$ npm test
```

### Complexity and Minification

```
$ gulp
```

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