Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@danielmoncada/angular-datetime-picker-moment-adapter

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@danielmoncada/angular-datetime-picker-moment-adapter

Angular Date Time Picker (MomentJs Adpater)

  • 5.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7.2K
decreased by-1.08%
Maintainers
0
Weekly downloads
 
Created
Source

Angular Date Time Picker (MomentJs Adapter)

npm npm

Angular date time picker - MomentJs Adpater

** This package supports Angular 18 **

Breaking Changes

  • Version 5.x.x >= no longer supports ng 17. If you need ng 17 support, stick with version 4.x.x.
  • 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 @danielmoncada/angular-datetime-picker-moment-adapter --save
  2. import { NgModule } from '@angular/core';
    import { OwlDateTimeModule, OWL_DATE_TIME_FORMATS} from '@danielmoncada/angular-datetime-picker;
    import { OwlMomentDateTimeModule } from '@danielmoncada/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 Daniel Moncada, original implementatiom by Daniel Pan

Keywords

FAQs

Package last updated on 12 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc