fahadyousaf -3 Newbie Poster

Please any one help in this problem, stuck in this.

i want difference of login time and log out time, get time from machine in this way 090010 (hour, minute,second), i want to separate time with "-" and insert in database.

e.g. login time from machine = 091043 , save in database = 09-10-43

and

login time = 091043
logout time = 150030

Total Time = 5:49:47 (5 hours 49 minutes 47 seconds)