PDA

View Full Version : Date functions problems



rahulgogoi
26th May 2011, 12:35
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

meazza
26th May 2011, 12:46
Check out the
QString QDate::toString ( const QString & format ) const

MarekR22
26th May 2011, 13:02
or you can change locale!