Simple responsive Angular date and time picker.
npm install --save nxt-pick-datetime
npm install --save moment # if you want to use MomentDateTimeModule
The date & time picker was built to be date implementation agnostic. It comes with two modules providing date adapter implementation, or you can provide your own adapter by implementing DateTimeAdapter
(see documentation).
NativeDateTimeModule
- support for native JavaScript Date objectMomentDateTimeModule
- support for MomentJsimport { DateTimeModule } from 'nxt-pick-datetime'
import { NativeDateTimeModule } from 'nxt-pick-datetime/native-adapter'
@NgModule({
...
imports: [
...
DateTimeModule,
NativeDateTimeModule
]
})
<input [nxtDateTime]="picker"
[nxtDateTimeTrigger]="picker"
placeholder="Date and time">
<nxt-date-time #picker></nxt-date-time>