# ngx-datetime

> ngx-datetime based on ng2-datetime

Latest version **1.0.2** (published 2018-03-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install ngx-datetime
pnpm add ngx-datetime
yarn add ngx-datetime
bun add ngx-datetime
```

## 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 | 1.0.2 |
| Published | 2018-03-29 |
| First published | 2018-01-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 138 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | dmaciaszek |
| Keywords | angular, javascript, typescript |

## Links

- npm: https://www.npmjs.com/package/ngx-datetime
- Repository: https://github.com/dmaciaszek/ng2-datetime
- npm.io page: https://npm.io/package/ngx-datetime

## Dependencies (4)

- [tslib](https://npm.io/package/tslib.md) ^1.7.1
- [bootstrap](https://npm.io/package/bootstrap.md) >=3.0.0
- [bootstrap-datepicker](https://npm.io/package/bootstrap-datepicker.md) 1.7.0-RC1
- [bootstrap-timepicker](https://npm.io/package/bootstrap-timepicker.md) ^0.5.2

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2018-03-29
- 1.0.1 — 2018-01-08
- 1.0.0 — 2018-01-08
- 0.0.1 — 2018-01-08

## README

# ngx-datetime
[![npm version](https://badge.fury.io/js/ngx-datetime.svg)](https://badge.fury.io/js/ngx-datetime)


Angular 5 compatible (by https://github.com/robisim74/angular-library-starter) fork of https://github.com/nkalinov/ng2-datetime datetime picker (plugins wrapper)

##### NPM PACKAGE: https://www.npmjs.com/package/ngx-datetime

##### DEMO: https://nkalinov.github.io/ng2-datetime

## Dependencies
- [Bootstrap3 (__CSS only__)](http://getbootstrap.com/)
- [jQuery 2+ (supports v3)](http://jquery.com/)
- [Bootstrap-datepicker __(JS+CSS)__](http://eternicode.github.io/bootstrap-datepicker/)
    - `npm install --save bootstrap-datepicker` 
    - or use the bundled version from `src/vendor/bootstrap-datepicker`
- [Bootstrap-timepicker __(JS+CSS)__](http://jdewit.github.io/bootstrap-timepicker/)
    - `npm install --save bootstrap-timepicker` 
    - or use the bundled version from `src/vendor/bootstrap-timepicker`

## Installation
`npm install --save ngx-datetime`

## Usage
1. import some way or another the required dependencies
2. `import {NKDatetime} from 'ngx-datetime/ngx-datetime';`
3. Add to your component's directives property
```
@Component({
    ...
    directives: [NKDatetime],
    ...
})
```
4. Use it: `<datetime [(ngModel)]="date"></datetime>`

See the [__DEMO__](https://nkalinov.github.io/ng2-datetime) and it [__source__](https://github.com/nkalinov/ng2-datetime/tree/master/demo) for more information.

## Contributing
Fork > Create > Pull request

## Thanks
- @jdewit for the [timepicker plugin](https://github.com/jdewit/bootstrap-timepicker)
- @eternicode for the [datepicker plugin](https://github.com/eternicode/bootstrap-datepicker)

### TODO:
- test ControlValueAccessor

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