{{ user.lastvisitdate }} – Last Visit Date

Returns User Last Visit Date.

Basic usage:

{{ user.lastvisitdate }}

Usage with parameters:

{{ user.lastvisitdate(User ID, Format) }}

Parameters:

  1. User ID (optional) – To get the Last Visit Date of the specific user, leave it blank to get the Current User’s Last Visit Date
  2. Format (optional) – PHP date format i.e. ‘Y-m-d H:i:s’ or Joomla defined format (language supported) if left empty. ‘timestamp’ to return the datetime in UNIX timestamp format.

Example:

{{ user.lastvisitdate("","Y-m-d") }}


What are your feelings

Leave a Reply

Updated on January 9, 2025