A new California law designed to standardize food expiration labeling and reduce food waste will take effect starting July 1.