Does this work?
Select empid From login_table
Where DATEDIFF(DD, loginDate, CURRENT_TIMESTAMP) >= 5
If it does not, then please post some sample data so that we can have a look at what your requirement is.
Please help us in helping you.
N 28° 33' 11.93148"
E 77° 14' 33.66384"