bool value::operator==(const date &comparand) const { return type_ == type::numeric && comparand.to_number(calendar::windows_1900) == numeric_value_; }
XLNT_FUNCTION void cell::set_value(date d) { d_->type_ = type::numeric; d_->value_numeric_ = d.to_number(get_base_date()); set_number_format(number_format::date_yyyymmdd2()); }