(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports", "tslib"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.isEqualDates = exports.ISO8601 = exports.formatISO8601ToDate = void 0;
    var tslib_1 = require("tslib");
    var formatISO8601ToDate = function (date) {
        var _a = (0, tslib_1.__read)(date.split(".").map(function (time) { return parseInt(time, 10); }), 3), day = _a[0], month = _a[1], year = _a[2];
        return new Date(year, month - 1, day);
    };
    exports.formatISO8601ToDate = formatISO8601ToDate;
    exports.ISO8601 = "dd.mm.yyyy";
    var isEqualDates = function (firstDate, secondDate) {
        return !(firstDate > secondDate) && !(firstDate < secondDate);
    };
    exports.isEqualDates = isEqualDates;
});
