# ngx-date-picker-fns

> Angular Datepicker Component

Latest version **2.5.0** (published 2018-09-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install ngx-date-picker-fns
pnpm add ngx-date-picker-fns
yarn add ngx-date-picker-fns
bun add ngx-date-picker-fns
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.5.0 |
| Published | 2018-09-03 |
| First published | 2017-06-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 193.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Ruben Cid |
| Maintainers | gnurub |
| Keywords | angular, angular2, angular4, angular5, ng2, ng4, ng5, ngx, datepicker, date, component |

## Links

- npm: https://www.npmjs.com/package/ngx-date-picker-fns
- Repository: https://github.com/GNURub/ngx-datepicker
- Homepage: https://github.com/GNURub/ngx-datepicker#readme
- Issues: https://github.com/GNURub/ngx-datepicker/issues
- npm.io page: https://npm.io/package/ngx-date-picker-fns

## Dependencies (2)

- [date-fns](https://npm.io/package/date-fns.md) ^1.29.0
- [ngx-slimscroll](https://npm.io/package/ngx-slimscroll.md) ^5.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

- 2.5.0 (latest) — 2018-09-03
- 2.4.0 — 2018-09-03
- 2.3.0 — 2018-09-03
- 2.2.0 — 2018-09-03
- 2.1.0 — 2017-10-13
- 2.0.1 — 2017-06-27
- 2.0.0 — 2017-06-27
- 1.1.1 — 2017-06-19
- 1.1.0 — 2017-06-19
- 1.0.0 — 2017-06-19

## README

# ngx-date-picker
Angular Datepicker Component

***ngx-date-picker*** is a date-picker component for Angular

## Demo

[https://gnurub.github.io/ngx-datepicker/](https://gnurub.github.io/ngx-datepicker/)

Looking for a date range picker? Check this one: [https://gnurub.github.io/ngx-daterangepicker/](https://gnurub.github.io/ngx-daterangepicker/)

## Installation:

Install ngx-date-picker via `npm`

````shell
npm install ngx-date-picker-fns --save
````

## Integration

```ts
// app.module.ts
import { NgxDatePickerModule } from 'ngx-date-picker-fns';

@NgModule({
  ...
  imports: [ NgxDatePickerModule ]
  ...
})
export class AppModule { }

// app.component.ts
import { Component } from '@angular/core';
import { NgxDatePickerOptions, DateModel } from 'ngx-date-picker-fns';

@Component({
  selector: 'app-root',
  templateUrl: 'app.component.html'
})
export class AppComponent {
  date: DateModel;
  options: NgxDatePickerOptions;

  constructor() {
    this.options = new NgxDatePickerOptions();
  }
}

// app.component.html
<ngx-date-picker [options]="options" [(ngModel)]="date"></ngx-date-picker>
```

For more info about options please see [this](https://github.com/GNURub/ngx-date-picker/blob/master/src/ngx-date-picker/ngx-date-picker.component.ts#L41-L53).

## Run Included Demo

```shell
git clone https://github.com/GNURub/ngx-datepicker.git --depth 1
cd ngx-datepicker
npm install
npm start
```

## AoT Library Build

```shell
npm run build:lib
```

## Licence

This project is licensed under the MIT license. See the [LICENSE](LICENSE) file for more info.

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