import { Injectable } from '@angular/core';
import { MomentDateAdapter } from '@angular/material-moment-adapter';
import { DateTimeService } from './date-time.service';
export class CustomDateAdapterService extends MomentDateAdapter {
    constructor(_dateTimeService) {
        super(_dateTimeService.locale);
        this._dateTimeService = _dateTimeService;
    }
    format(date, _displayFormat) {
        const locale = this._dateTimeService.locale;
        const format = this._dateTimeService.format;
        const result = date.locale(locale).format(format);
        return result;
    }
}
CustomDateAdapterService.decorators = [
    { type: Injectable }
];
CustomDateAdapterService.ctorParameters = () => [
    { type: DateTimeService }
];
//# sourceMappingURL=custom-adapter.service.js.map