import InBetween from "../BaseDatabase/InBetween";
import OneUptimeDate from "../Date";
export default class DatabaseDate {
    static asDateStartOfTheDayEndOfTheDayForDatabaseQuery(date) {
        let startValue = date;
        if (!(startValue instanceof Date)) {
            startValue = OneUptimeDate.fromString(startValue);
        }
        let endValue = date;
        if (!(endValue instanceof Date)) {
            endValue = OneUptimeDate.fromString(endValue);
        }
        startValue = OneUptimeDate.getStartOfDay(startValue);
        endValue = OneUptimeDate.getEndOfDay(endValue);
        return new InBetween(OneUptimeDate.toDatabaseDate(startValue), OneUptimeDate.toDatabaseDate(endValue));
    }
}
//# sourceMappingURL=Date.js.map