6.0.8 • Published 11 months ago

@richagain/angular-datetime-picker-moment-adapter v6.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Angular Date Time Picker (MomentJs Adapter)

npm npm

Angular date time picker - MomentJs Adpater

This package supports Angular 18

Breaking Changes

  • Version 4.x.x >= no longer supports ng 16 - 13. If you need ng 16-13 support, stick with version 3.x.x.
  • Version 2.x.x no longer supports <= ng 13. If you need View Engine support, stick with version 1.x.x.

Description

This is a MomentJs adapter to be used with the following date time picker control:

https://github.com/danielmoncada/date-time-picker

How to Use

  1. Install with npm:npm install @richagain/angular-datetime-picker-moment-adapter --save
```typescript
import { NgModule } from '@angular/core';
import { OwlDateTimeModule, OWL_DATE_TIME_FORMATS} from '@danielmoncada/angular-datetime-picker;
import { OwlMomentDateTimeModule } from '@richagain/angular-datetime-picker-moment-adapter';

// See the Moment.js docs for the meaning of these formats:
// https://momentjs.com/docs/#/displaying/format/
export const MY_MOMENT_FORMATS = {
    parseInput: 'l LT',
    fullPickerInput: 'l LT',
    datePickerInput: 'l',
    timePickerInput: 'LT',
    monthYearLabel: 'MMM YYYY',
    dateA11yLabel: 'LL',
    monthYearA11yLabel: 'MMMM YYYY',
};

@NgModule({
    imports: [OwlDateTimeModule, OwlMomentDateTimeModule],
    providers: [
        {provide: OWL_DATE_TIME_FORMATS, useValue: MY_MOMENT_FORMATS},
    ],
})
export class AppExampleModule {
}
```

Dependencies

  • moment
  • @danielmoncada/angular-datetime-picker
  • tslib

Demo

License

  • License: MIT

Author

Maintained and updated by Richard Zheng, original implementatiom by Daniel Pan

6.0.8

11 months ago

6.0.6

11 months ago

6.0.4

11 months ago

6.0.3

11 months ago

6.0.2

11 months ago

6.0.1

11 months ago

5.0.3

1 year ago

5.0.2

1 year ago

5.0.1

1 year ago

5.0.0

1 year ago