How to use @angular/material-moment-adapter - 1 common examples

To help you get started, we’ve selected a few @angular/material-moment-adapter examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github outcobra / outstanding-cobra / frontend / src / app / core / services / oc-validators.ts View on Github external
return (control: AbstractControl): ValidationErrors | null => {
            let dateAdapter = new MomentDateAdapter('de');
            let date = dateAdapter.parse(control.value, OC_DATE_FORMATS.parse.dateInput);
            if (isNull(date)) {
                return {
                    'date': {'requiredFormat': OC_DATE_FORMATS.parse.dateInput}
                };
            }
            return null;
        };
    }

@angular/material-moment-adapter

Angular Material Moment Adapter

MIT
Latest version published 11 days ago

Package Health Score

98 / 100
Full package analysis

Popular @angular/material-moment-adapter functions

Similar packages