Documentation > CMS Template API Library > User > LastLoginDate
LastLoginDate
This might not be initialized. Use HasValue to see.
Type
Nullable<DateTime>
Code Example
C#
Sample:
User thisUser = User.Load("myuser"); if( thisUser.LastLoginDate.HasValue) Out.WriteLine("Hello {0}. You last logged in {1} ",thisUser.Username, thisUser.LastLoginDate.Value);