Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved How to changer a number of days into a number of months ? Thank you for your help

    General and Desktop
    2
    3
    393
    Loading More Posts
    • 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.
    • A
      augus250 last edited by

      Hello,

      I have stupid question, how can i change the number of days into in number of months, something like that, 365 returns 12 months.

      Thank you in advancy

      m.sue 1 Reply Last reply Reply Quote 0
      • m.sue
        m.sue @augus250 last edited by

        Hi @augus250

        As the months and even the years have different number of days, you can only do it exactly when you know the starting date.

        -Michael.

        A 1 Reply Last reply Reply Quote 3
        • A
          augus250 @m.sue last edited by

          @m.sue Thank you for your quicky response, i resolve it by dividing by 30.4 , therefore i round the result. It's the good method but for my application it's fine.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post