# datetojson

> Receive time and dateformat return json with data

Latest version **1.0.1** (published 2016-09-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install datetojson
pnpm add datetojson
yarn add datetojson
bun add datetojson
```

## 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.1 |
| Published | 2016-09-09 |
| First published | 2016-09-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Emilio Villegas |
| Maintainers | evill89 |
| Keywords | date, format, json, parse, time, dateformat |

## Links

- npm: https://www.npmjs.com/package/datetojson
- Repository: https://github.com/evill89/datetojson
- Homepage: https://github.com/evill89/datetojson#readme
- Issues: https://github.com/evill89/datetojson/issues
- npm.io page: https://npm.io/package/datetojson

## Dependencies (1)

- [moment](https://npm.io/package/moment.md) ^2.14.1

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.1 (latest) — 2016-09-09
- 0.0.1 — 2016-09-09

## README

DateToJson
=========

A small library that return date in json format

## Usage

    var dateformat = require('datetojson');

    var date = datetoformat("ddd, DD MMM YYYY HH:mm:ss ZZ", "Sun, 04 Sep 2016 21:00:00 +0100");
  
	date.day - day of month
	date.month - month of year
	date.year - year
	date.hour - hour
	date.minute - minute
	date.second - second
	
## Tests

  `npm test`

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