I want to show the last login date on my site template page, how to do it? I {! $ User.LastLoginDate}, but it says "FieldsLogin date is missing. Check spelling".
Please help
Not being visible through the medium You can expose a date property in your page controller and query with SOQL.
Last login {get; Set;} Controller: User U = [Last login name with last user name WHERE id =: UserInfo.getUserId ()]; Last login = u.LastLoginDate; VF: {! Last login}
No comments:
Post a Comment