Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Parse QDate into seperate month day year fields.
Qt 6.11 is out! See what's new in the release blog

Parse QDate into seperate month day year fields.

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 973 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • xopheriraX Offline
    xopheriraX Offline
    xopherira
    wrote on last edited by
    #1

    Is there an easy Qt way to parse a returned QDate field into separate variables?

      QDate dateToShip;
        dateToShip.toString(ui->dateEdit->text());
    
    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      QDate::day()
      QDate::month()
      QDate::year()

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      1
      • xopheriraX Offline
        xopheriraX Offline
        xopherira
        wrote on last edited by
        #3

        Thanks, new to Qt and figured there was an easy way!

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved