Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
public DateTime lastlogin{get;set;} controller: User u = [SELECT LastLoginDate FROM User WHERE Id =:UserInfo.getUserId()]; lastlogin = u.LastLoginDate; VF: {! lastlogin }
Please try something like this.
For more information please refer to below link which might help you further.
- https://ebstalimited.zendesk.com/hc/en-us/articles/231948387-How-to-create-a-Days-Since-Last-Activity-Custom-Field
Hope this helps.Kindly mark this as solved if the reply was helpful.
Thanks,
Nagendra