Date functions problem
-
hello friends
How we can remove week name from date..means when i used the following thing in my code as shown below..i got the following output..
QDate date=new QDate;
qDebug<<date.currentDate()The output is: QDate("Thu May 26 2011")
Now i want the output like this QDate("May 26 2011") ..so how this can be done please anyone suggest me..i gone through the documentation but couldnt get any help..
regards
Rahul -
you can use
date.tostring("MMM dd yyyy");
-
you may consult "the documentation":http://doc.qt.nokia.com/4.7/qdate.html#toString for the details.
-
Thanks its work..