Results 1 to 3 of 3

Thread: Date functions problems

  1. #1
    Join Date
    May 2011
    Posts
    21
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Default Date functions problems

    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

  2. #2
    Join Date
    Mar 2011
    Posts
    63
    Thanks
    11
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Date functions problems

    Check out the
    Qt Code:
    1. QString QDate::toString ( const QString & format ) const
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Nov 2010
    Posts
    315
    Thanked 53 Times in 51 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Date functions problems

    or you can change locale!

Similar Threads

  1. get date
    By mmm286 in forum Newbie
    Replies: 2
    Last Post: 17th February 2010, 09:18
  2. Problems with scope and C header functions
    By waldowoc in forum Newbie
    Replies: 5
    Last Post: 5th August 2008, 11:29
  3. date
    By AnithaRagupathy in forum Qt Programming
    Replies: 3
    Last Post: 2nd November 2007, 06:28
  4. How to default Date-Edit Widget to system date
    By JohnToddSr in forum Qt Tools
    Replies: 4
    Last Post: 17th January 2007, 19:18

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.