Source

dateTime/isSameDay.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
 * Check if on same day (ignore the time)
 *
 * @author Sandy Lau https://github.com/sandylau333
 *
 * @param a
 * @param b
 * @category dateTime
 * @module isSameDay
 */
var isSameDay = function (a, b) {
    var aDay = new Date(a.getFullYear(), a.getMonth(), a.getDate());
    var bDay = new Date(b.getFullYear(), b.getMonth(), b.getDate());
    return aDay.valueOf() === bDay.valueOf();
};
exports.default = isSameDay;