# create-date

> Create a date without using the 'new' keyword

Latest version **1.0.0** (published 2015-09-23) · MIT license · 0 weekly downloads

## Install

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

## 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-09-23 |
| First published | 2015-09-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Ben Drucker |
| Maintainers | bendrucker |
| Keywords | date, new, create |

## Links

- npm: https://www.npmjs.com/package/create-date
- Repository: https://github.com/bendrucker/create-date
- Homepage: https://github.com/bendrucker/create-date#readme
- Issues: https://github.com/bendrucker/create-date/issues
- npm.io page: https://npm.io/package/create-date

## 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.0 (latest) — 2015-09-23

## README

# create-date [![Build Status](https://travis-ci.org/bendrucker/create-date.svg?branch=master)](https://travis-ci.org/bendrucker/create-date)

> Create a date without using the 'new' keyword

Because this doesn't work:

```js
Date('1-1-2000')
```

## Install

```
$ npm install --save create-date
```


## Usage

```js
var createDate = require('create-date')

createDate('1-1-2000')
//=> Sat Jan 01 2000 00:00:00 GMT-0800 (PST) (Date)
```

## API

#### `createDate(value)` -> `date`

##### value

*Required*  
Type: `string` / `number`

A date string, number, or any other appropriate value to pass to the `Date` constructor.


## License

MIT © [Ben Drucker](http://bendrucker.me)

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