Use LASTLOGINTIME to display the last time the user logged in.
LASTLOGINTIME has the following command format:
LASTLOGINTIME
If you include this command in your login script, the time of the last login is displayed on the user's workstation screen.