Sure
I set up a table with a username(varchar) field and logdate(datetime).
The following code snippet is placed in the logonuser function in the logon.csp file:
==========================
//Log the user as entering the system
var conn = new ActiveXObject("ADODB.Connection"

;
var connectionstring = "Provider=MSDASQL.1;Persist Security Info=False;User ID=USERNAME;Data Source=YOURSCHEMANAME"
conn.Open(connectionstring)
var rs = new ActiveXObject("ADODB.Recordset"

var mydate = new Date()
var mymonth = mydate.getMonth()+1
rs.Open("INSERT TBL_JOBCOST_LOG (Username,logdate) values('"+username+"', '" + mydate.getFullYear() +"-" + mymonth + "-" + mydate.getDate() + " " + mydate.getHours() + ":" + mydate.getMinutes() + "')", conn)
conn.close
======================================
Its probably a bit scrappy with the months and stuff but its my first ad hoc bit of javascript - and it works so I was pretty chuffed.
If it blows your whistle then nominate me helpful....
or is coercion not allowed
Cheers