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