# iso8601-convert

> Convert between ISO8601 strings and Date objects

Latest version **1.0.0** (published 2015-02-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install iso8601-convert
pnpm add iso8601-convert
yarn add iso8601-convert
bun add iso8601-convert
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-02-21 |
| First published | 2015-02-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Fionn Kelleher |
| Maintainers | expr |
| Keywords | iso8601, date, parse, convert |

## Links

- npm: https://www.npmjs.com/package/iso8601-convert
- Repository: https://github.com/expr/iso8601-convert
- Issues: https://github.com/expr/iso8601-convert/issues
- npm.io page: https://npm.io/package/iso8601-convert

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-02-21

## README

# iso8601-convert
> Convert between ISO8601 strings and Date objects

Alternative to `Date.parse()` with support for leap seconds. A fork of [calmh/node-iso8601](https://github.com/calmh/node-iso8601).

## Installation

    npm install iso8601-convert

## Usage

```js
var iso8601 = require('iso8601-convert')

// convert ISO 8601 date string to Date object
console.log(iso8601.toDate('2012-05-21T23:32:12.419Z'))
// convert Date object to ISO 8601 date string
console.log(iso8601.fromDate(Date.now()))
```

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