Skip to content

Instantly share code, notes, and snippets.

@rovercoder
rovercoder / app.module.ts
Last active October 26, 2019 00:20
ng-pick-datetime: date-fns implementation
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { DateTimeAdapter, OwlDateTimeModule, OwlNativeDateTimeModule, OWL_DATE_TIME_FORMATS } from 'ng-pick-datetime';
import { DateFnsDateTimeAdapter } from 'src/@global/date/date-fns-date-time-adapter.class';
import { AppComponent } from './app.component';
import { DateExampleComponent } from './date-example/date-example.component';
const DATEFNS_FORMATS_EN_LOCALE = {