Hi @Dhinesh28R ,
1\ Why is the logout value modified in your login formula?

2\ When a user logs in (click on the login button ), do you want to create a new record and patch the current time to the login column?
If so, you should create a record, not modify a record.
Your login formula is to modify a record.
I assume that a user named 'Suresh' uses your 'login and logout' app.
1\ Add a login button and set its onslect property to:
Set(Thevar,Patch('List',Defaults('List'),{Name:User().FullName,Department:"Java",Login:Now()}))
// When the user enters the app and presses the login button, a record/Item will be created, and the current time will be saved in the login column.
2\ Add a logout button and set its onslect property to:
Patch('List',Thevar,{Logout:Now()})
// When the user presses the logout button before exiting the app, the current time will be saved in the logout column.
Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.