QSqlField field(QString(), QVariant::DateTime);field.setValue(QDateTime::currentDateTime());QString sSqlWhere = "DATE=" + QSqlDatabase().driver()->formatValue(field);