function toSerial(date) {
    const addOn = (date > -2203891200000) ? 2 : 1;
    return Math.floor((date - d1900) / 86400000) + addOn;
}
Parse a UTC date to excel serial number.
@param {Date|number} date - A UTC date.
@returns {number}