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" ??
QString datum
= dt.
toString();
//"Do 16. Feb 10:00:59 2006".
QDateTime dt = QDateTime::currentDateTime();
QString datum = dt.toString(); //"Do 16. Feb 10:00:59 2006".
To copy to clipboard, switch view to plain text mode
I tried this:
QString date
= dt.
toString(d.
M.
yy);
QString complete
= date
+ " " + time;
QString date = dt.toString(d.M.yy);
QString time = dt.toString(h:m:s);
QString complete = date + " " + time;
To copy to clipboard, switch view to plain text mode
Can somebody help?
THX
Bookmarks