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.addConnectio n=app.dbConnect ion
sql="INSERT INTO Log (UserID, Date) VALUES (@UserID, @Date)"
ex.addParm("@Us erID",userID)
ex.addParm("@Da te", DateTime.Today)
tr
ex.ExecuteSQL(s ql)
}
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.addConnectio n=app.dbConnect ion
sql="INSERT INTO Log (UserID, Date) VALUES (@UserID, @Date)"
ex.addParm("@Us erID",userID)
ex.addParm("@Da te", DateTime.Today)
tr
ex.ExecuteSQL(s ql)
}
Comment