<?php global $wp_query; $registered = date_i18n( "j.m.Y", strtotime( get_the_author_meta( 'user_registered', $wp_query->queried_object_id ) ) ); ?>
<?php echo date("j.m.Y", strtotime($registered)); ?>
function getUserRegDate($id = 0){
global $wpdb;
$date = $wpdb->get_var($wpdb->prepare('SELECT user_registered FROM '.$wpdb->users.' WHERE ID="'.$id.'"'));
$date = explode(' ', $date);
$date = explode('-', $date[0]);
return $date[2].'/'.$date[1].'/'.$date[0];
}
echo getUserRegDate(get_current_user_id());
<?php $registered = ($user_info->user_registered . "\n");
echo date("n/j/Y", strtotime($registered)); ?>
<?php
$users = get_users();
foreach( $users as $user ) {
$udata = get_userdata( $user->ID );
$registered = $udata->user_registered;
printf( ‘%s Член ВКПб с %s<br>’, $udata->data->display_name, date( “M Y”, strtotime( $registered ) ) );
}