You can't on a child (i.e. under-13 in Family Share) account : Update the birth date associated with your Apple ID - Apple Support
Be sure to enter your correct date of birth. After you change it to any age below 13, you can't edit it. Learn more about Apple IDs for children.
If it's not a child (i.e. under-13) account you can change as per the instructions in that link.