Hi,
You can change in wordpress settings – General – Date Format.
Or you can create a filter in your functions.php like this:
function my_show_field_value($value_to_return, $type, $id, $value) {
$field = new BP_XProfile_Field($id);
if ($type == 'birthdate') {
// Get children.
$childs = $field->get_children();
$show_age = false;
if (isset($childs) && $childs && count($childs) > 0 && is_object($childs[0])) {
if ($childs[0]->name == 'show_age')
$show_age = true;
}
if ($value != '') {
if ($show_age) {
$value_to_return = '<p>'.floor((time() - strtotime($value))/31556926).'</p>';
} else {
$value_to_return = '<p>'.date_i18n('Here goes your date format' ,strtotime($value) ).'</p>';
}
}
}
return $value_to_return;
}
add_filter('bxcft_show_field_value', 'my_show_field_value', 10, 4);
Replace the sentence “Here goes your date format” with your date format.