If you are using asp.net membership you can use
MembershipUser.LastLoginDate Property[
^]
Otherwise, you have to store the logged in date time of the user in a database table column. Whenever the user logs in to the website , first retrieve the already stored date, i.e. the last login date, and update it with the current logged in datetime. The retrieved last logged in date time can then be displayed in a label control.