G
Guest
I would like to store a Date/Time stamp in a SQL tabel
Now only the Date is stred and not the time. How to I get the time also
This is the code (There is more, but that works)
atSQLexe ex=new atSQLexe()
ex.addConnection=app.dbConnection
sql="INSERT INTO Log (UserID, Date) VALUES (@UserID, @Date)"
ex.addParm("@UserID",userID)
ex.addParm("@Date", DateTime.Today)
tr
ex.ExecuteSQL(sql)
}
Now only the Date is stred and not the time. How to I get the time also
This is the code (There is more, but that works)
atSQLexe ex=new atSQLexe()
ex.addConnection=app.dbConnection
sql="INSERT INTO Log (UserID, Date) VALUES (@UserID, @Date)"
ex.addParm("@UserID",userID)
ex.addParm("@Date", DateTime.Today)
tr
ex.ExecuteSQL(sql)
}