# d-datepicker

> Datepicker component for Derby

Latest version **0.3.1** (published 2014-08-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install d-datepicker
pnpm add d-datepicker
yarn add d-datepicker
bun add d-datepicker
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.1 |
| Published | 2014-08-17 |
| First published | 2014-07-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | John Caliman |
| Maintainers | icaliman |
| Keywords | datepicker, derby-component |

## Links

- npm: https://www.npmjs.com/package/d-datepicker
- Repository: https://github.com/icaliman/d-datepicker
- Homepage: http://icaliman.github.io/d-datepicker/
- Issues: https://github.com/icaliman/d-datepicker/issues
- npm.io page: https://npm.io/package/d-datepicker

## Dependencies (1)

- [moment](https://npm.io/package/moment.md) ~2.7.0

## Recent versions

- 0.3.1 (latest) — 2014-08-17
- 0.3.0 — 2014-08-08
- 0.2.11 — 2014-08-06
- 0.2.10 — 2014-08-06
- 0.2.9 — 2014-08-06
- 0.2.8 — 2014-08-06
- 0.2.7 — 2014-08-06
- 0.2.6 — 2014-08-06
- 0.2.5 — 2014-08-06
- 0.2.4 — 2014-08-06
- 0.2.3 — 2014-08-04
- 0.2.2 — 2014-07-26
- 0.2.1 — 2014-07-26
- 0.2.0 — 2014-07-26
- 0.0.0 — 2014-07-26
- … 1 more at https://npm.io/package/d-datepicker/versions

## README

# d-datepicker

Datepicker component for Derby.

<p align="center"><img src="https://raw.githubusercontent.com/icaliman/d-datepicker/gh-pages/images/datepicker-inline.png" alt="Screenshot of datepicker component"/></p>

Please note that this project is inspired by [Bootstrap-datepicker](https://github.com/eternicode/bootstrap-datepicker), and makes use of a css-file from that project.

## Features
* Datepicker tied to a standard form input field.
* Inline datepicker.
* Localized datepicker.

## Format

Dates set by datepicker will be in the format `YYYY-MM-DD` (2014-04-16).

## TODO
* Use personalized formats for dates.

## Usage example

First of make sure to install d-datepicker through npm `npm install d-datepicker`.

### Including

```js
app.use(require('d-datepicker'));
```
        
### In template
   
```html
<Body:>
  <!-- datepicker tied to a standard form input field -->
  <datepicker active="{{post.date}}"></datepicker>

  <!-- inline datepicker -->
  <datepicker active="{{post.date}}" inline></datepicker>

  <!-- localized datepicker -->
  <datepicker active="{{post.date}}" inline lang="fr"></datepicker>
```      
      
### Retrieve data

```js
var pickedDate = model.get('post.date');
```

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