# graphql-date

> GraphQL Date Type

Latest version **1.0.3** (published 2017-02-04) · MIT license · 0 weekly downloads

## Install

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

## 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.0.3 |
| Published | 2017-02-04 |
| First published | 2016-04-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/graphql-date) |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 67 |
| Author | Tejesh Mehta |
| Maintainers | tjmehta |
| Keywords | graphql, date, type, datetype |

## Links

- npm: https://www.npmjs.com/package/graphql-date
- Repository: https://github.com/tjmehta/graphql-date
- Issues: https://github.com/tjmehta/graphql-date/issues
- npm.io page: https://npm.io/package/graphql-date

## Dependencies (1)

- [assert-err](https://npm.io/package/assert-err.md) ^1.0.0

## 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.3 (latest) — 2017-02-04
- 1.0.2 — 2016-07-19
- 1.0.1 — 2016-04-26
- 1.0.0 — 2016-04-26

## README

# graphql-date [![Build Status](https://travis-ci.org/tjmehta/graphql-date.svg)](https://travis-ci.org/tjmehta/graphql-date) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)
GraphQL Date Type

# Installation
```bash
npm i --save graphql-date
```

# Usage
```js
var GraphQLDate = require('graphql-date')

// Use graphql-date in your GraphQL objects for Date properties
var fooType = new GraphQLObjectType({
  name: 'Foo',
  description: 'Some foo type',
  fields: {
    created: {
      type: GraphQLDate,
      description: 'Date foo was created'
    }
  }
});

var queryType = new GraphQLObjectType({
  name: 'Query',
  fields: {
    foo: {
      type: fooType,
      resolve: function () {
        // ...
      },
    }
  }
})
```

# License
MIT

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