I think the German Personalausweis has an electronic ID function that does this: age verification without giving out other information like name etc. But the application chooses which information is requested and could/will request more.
Unfortunately few know and use this information although the usage via NFC is not that complicated. Have used it successfully already a few times for banks, but including name information etc.