Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. qdate
    Log in to post

    • SOLVED Undefined behaviour of QDate when converted to string
      General and Desktop • c++ qt qdate • • Ahti  

      2
      0
      Votes
      2
      Posts
      58
      Views

      Hi If the database table type is of type date, it wont like a string formatted as SunFeb2020 so you need to match the toString format to the one expceted by the DBMS.
    • SOLVED Filter by Date on a SQLITE
      General and Desktop • sqlite qstring query qdate date • • cxam  

      4
      0
      Votes
      4
      Posts
      4917
      Views

      @the_ @SGaist Hi, I managed to solve it on my own by encoding the date to a JulianDate and using juliandate on my db so it's much easier to compare and so. Thanks for your help.
    • SOLVED Getting current year
      General and Desktop • qdate • • gabor53  

      3
      0
      Votes
      3
      Posts
      4297
      Views

      @asanka424 Thank you.
    • UNSOLVED Date formatting with Translations.
      General and Desktop • javascript i18n qdate • • EStudley  

      1
      0
      Votes
      1
      Posts
      494
      Views

      No one has replied

    • Why is "addDays" not working? (QDate) [SOLVED]
      General and Desktop • qdate • • RolBri  

      3
      0
      Votes
      3
      Posts
      1404
      Views

      Thank you very much :-)
    • How to print Qdate value on screen
      General and Desktop • string screen qdate stdout • • RDiGuida  

      3
      0
      Votes
      3
      Posts
      3625
      Views

      @RDiGuida To add to @Mario84's answer, QString is Qt based class and your using standard c++ API's to print it which it doesnot understand. To print values of pure Qt based API's you can use qDebug(). Eg: QString dt ((dates[0]).toString()); qDebug() << dt;