PDA

View Full Version : How to convert QDate::currentDate() format to dd/MM/yyyy format



Channareddy
2nd June 2011, 07:56
Hello,
I am new to Qt.Here is my code for date
Date createDate;
createdDate=QDate::currentDate();
String createdDateString;
createdDateString=createdDate.toString();

the date format displayed is e.g today's date is Thru June 2 2011 but i want the date to be displayed as 02/06/2011. Please help me...:)
Thanks in advance..:)

ChrisW67
2nd June 2011, 08:12
Please read the manual for QDate::toString()

Channareddy
3rd June 2011, 08:39
Yes i got it..Thank you Chris..