Hi,
The lastlogintime is not synchronised from AAD Connect to Azure AD, reference-connect-sync-attributes-synchronized Check the list of attributes that are sync.
You can use GraphAPI for extracting the LastLogonTimestamp check this - find-last-login-date-for-all-azure-ad-users-using-powershell.html
==
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.
----
Please don't forget to upvote and Accept as answer if the reply is helpful