raphaelf
16th February 2006, 10:25
Hello everybody,
OS: WINXP
Compiler: MINGW
QT: 3.4
I am trying to get my current date with time without Day "DO".
With following function i get this: "Do 16. Feb 10:00:59 2006".
How could i get just: "16. Feb 10:00:59 2006" ??
QDateTime dt = QDateTime::currentDateTime();
QString datum = dt.toString(); //"Do 16. Feb 10:00:59 2006".
I tried this:
QString date = dt.toString(d.M.yy);
QString time = dt.toString(h:m:s);
QString complete = date + " " + time;
Can somebody help?
THX
OS: WINXP
Compiler: MINGW
QT: 3.4
I am trying to get my current date with time without Day "DO".
With following function i get this: "Do 16. Feb 10:00:59 2006".
How could i get just: "16. Feb 10:00:59 2006" ??
QDateTime dt = QDateTime::currentDateTime();
QString datum = dt.toString(); //"Do 16. Feb 10:00:59 2006".
I tried this:
QString date = dt.toString(d.M.yy);
QString time = dt.toString(h:m:s);
QString complete = date + " " + time;
Can somebody help?
THX