Skip to content

Files

Latest commit

Jan 10, 2025
db3f89b · Jan 10, 2025

History

History

pick-datetime

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Mar 16, 2023
Jan 9, 2025
Nov 27, 2024
Dec 2, 2024
Mar 22, 2023
Mar 6, 2023
Jan 10, 2025
Mar 20, 2023
Dec 17, 2024
Mar 7, 2023
Mar 3, 2023
Jan 10, 2025
Mar 14, 2023
Mar 3, 2023
Mar 3, 2023

Angular date & time picker

GitHub license npm scope

Simple responsive Angular date and time picker.

Quick links

Installing

npm install --save nxt-pick-datetime
npm install --save moment   # if you want to use MomentDateTimeModule

Import main module and DateTime adapter provider

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 object
  • MomentDateTimeModule - support for MomentJs
import { DateTimeModule } from 'nxt-pick-datetime'
import { NativeDateTimeModule } from 'nxt-pick-datetime/native-adapter'

@NgModule({
    ...
    imports: [
        ...
        DateTimeModule,
        NativeDateTimeModule
    ]
})

Use it in a template

<input [nxtDateTime]="picker"
    [nxtDateTimeTrigger]="picker"
    placeholder="Date and time">
<nxt-date-time #picker></nxt-date-time>