I am setting a cookie when a user logs in that contains the date - the problem is that when I call it back up it is just a number 37261. How do I format this back into a date and time?<BR><BR><BR>Below I have the connection string that I use for an access database - how would I change this for an excel spreadsheet?<BR><BR>&#039;Create a connection odject<BR>Set adoCon = Server.CreateObject("ADODB.Connection")<BR> <BR>&#039;Database connection info and driver<BR>strCon = "DRIVER={Microsoft Access Driver (*.mdb)};uid=;pwd=gasp; DBQ=" & Server.MapPath(strAccessDB) <BR><BR>&#039;Set an active connection to the Connection object<BR>adoCon.Open strCon<BR><BR>&#039;Create a recordset object<BR>Set rsCheckUser = Server.CreateObject("ADODB.Recordset")<BR><BR>&#03 9;Initalise the strSQL variable with an SQL statement to query the database<BR>strSQL = "SELECT users.Password FROM users WHERE users.UserID =&#039;" & strUserName & "&#039;"<BR>