Hi,

Why are you not using a QTime/Date function .toString and add this to your query as a parameter ... e.g.

Qt Code:
  1. query.exec("Alter table USERS1 Rename to " + QTime::currentTime ().toString(your format))
To copy to clipboard, switch view to plain text mode 

But I think "." is not allowed as a character in a table name ... use something else then