Sandeep Nair:
Hi,
As Amos said you can just retrieve only the lastloginDate of the user
If you want to find the login date of the logged in user simply use the following
PortalUtil.getUser(request).getLastLoginDate();
If you want loginDate of all users, u can call UserLocalServiceUtil.getUsers(-1,-1);
to retrieve all users in system and then use the above method in a loop.
I am trying the same thing in a VM File
with the code
$user.getLastLoginDate() --> Mon Jan 10 16:11:47 GMT 2011
I get it, but i cant format or split it
I tried
$splittedLoginDate = $stringUtil.split($user.getLoginDate(), ' ')
$date.format('medium',$user.getLoginDate())
but i get just the same string. can someone pls point me in the right direction?
Marcus
Be kell jelentkezni ahhoz, hogy ez helytelenként legyen megjelölve.