Hi, first of all use QSqlQuery::prepare() and QSqlQuery::bindValue() instead of arg(), and then what format has your database entry (timestamp, date or time)?
Hi, first of all use QSqlQuery::prepare() and QSqlQuery::bindValue() instead of arg(), and then what format has your database entry (timestamp, date or time)?
jano_alex_es (6th May 2009)
... use QDateTime::toString ( const QString & format ) to get the right input format for your database.
jano_alex_es (6th May 2009)
it works fine just including the prepare and binding instead of the quotation marks ^^
thanks again!
Bookmarks