Checking if 24 hours has passed since last member login time

I am getting the info found in " Members/PrivateMembersData" collection that shows when was last time the member logged in.

        .eq("slug", itemData.refMemPublicData.slug)
        .then((results) => {
            let memlastlogin = results.items[0].lastLogin 
            //Wed Apr 27 2022 10:23:33 GMT-0400 (Eastern Daylight Time)

I am needing to use that information and the Date() function to determine if the member was logged within 24 hours from now

.then((results) => {
      let memlastlogin = results.items[0].lastLogin ;
      const loggedIn24h = memlastlogin.getTime() >= - 24 * 3600 * 1000;


Thank you for your help J.D but all of the results say false. When two of the three members should say true.

memlastlogin is in this format
Tue Apr 19 2022 15:34:36 GMT-0400 (Eastern Daylight Time)

now is in this format

The member that has not log in within 24 hours as a time stamp of 
Tue Apr 19 2022 15:34:36 GMT-0400 (Eastern Daylight Time)
It returns a false 

To clarify when it returns true it should mean that they have logged within 24 hours. When it returns false it should mean that it has been more than 24 hours that they have logged in.

Wonderful! it works now! Thanks you a lot!!