Display last logon date on profile I have D7 with profile2 how can I display the user last active date (last login date) on the users profile so other users know that they are an active user. It doesn't have to the actual date it can say something like "Active within the last week"
You can implement template_preprocess_user_profile

In your theme's template.php file add:

function MYTHEMENAME_preprocess_user_profile(&amp;$vars) {
  $vars['user_profile']['last_login'] = array(
      '#markup' =&gt; t('Last login') . ': ' . format_date($vars['user']-&gt;login, 'medium'), // prints the actual last login time using the medium date format
      '#weight' =&gt; 99, // defines location
  );
}


Clear the cache and check the user profile page (e.g. /user/1)