Display Birthdate on the Profile Cards in Member Directories

Ultimate Member allows you to add fields and display them on profile cards in member directories. However, if you add a Birth Date field in wp-admin> Ultimate Member> Member Directories> Edit Member Directory>  Profile Card Section> Choose field(s) to display in extra user information section, the user's age is displayed on the profile card in member directories by default.  

If you want to display the full birth date of each user, you need to use a custom code. You can try and use the example code below, add the code snippet to your child_theme's functions.php file or use the "Code Snippets" Plugin:

Make sure to add the birthdate field in the profile card section in the Member Directories' setting, as mentioned above

The date format being used in the code snippet is the same as defined in WP Settings -> General -> Date Format, or you can check the field setting in  wp-admin>Ultimate Member> Forms> Edit Profile Form>  Edit Birthdate field. In the displayed date format option, select show full date.

Once the settings are saved and updated, the full birthdates are displayed on the profile cards.

NOTE: We have created this code example to provide guidance and to make it easier for you to implement this code into your website. However, we are not able to provide any support when it comes to customizing the plugin. If you need help implementing this code, please hire a developer.