Results 1 to 3 of 3

Thread: Date/Time formatting

  1. #1
    Join Date
    Jul 2009
    Posts
    74
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Question Date/Time formatting

    Hi all,

    I have been brainwashed this past Qt Dev days, and thought using QML would be great for a prototype I'm working on.

    I have to admit, I'm stumbling a bit. One simple thing that I haven't been able to achieve is to format the current date properly, using a "longDate" formatting.

    I've tried the JavaScript calls, which QML does not seem to recognize. I have tried QMLs native Qt.formatDate function, which does not show up in my Creator's AutoComplete (maybe the documentation reflects something else than the 4.7.0 version I have)?

    How do I do it?

    Qt version: 4.7.0
    Creator version: 2.0

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,013 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Date/Time formatting

    Show us some code.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jul 2009
    Posts
    74
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Date/Time formatting

    You are right of course, but I've already trashed it. I'll re-write my code using GraphicsView

Similar Threads

  1. other time...can't get date
    By mmm286 in forum Newbie
    Replies: 7
    Last Post: 4th March 2010, 16:53
  2. date time to qtextedit??
    By briang in forum Newbie
    Replies: 9
    Last Post: 16th October 2009, 06:29
  3. Differences in Date formatting Mac/Win
    By Kesy in forum Qt Programming
    Replies: 0
    Last Post: 8th January 2009, 14:33
  4. Date Time
    By starcontrol in forum Qt Programming
    Replies: 3
    Last Post: 4th April 2008, 12:02
  5. How to set the file's date and time.
    By santosh.kumar in forum General Programming
    Replies: 3
    Last Post: 12th October 2007, 12:13

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.