No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

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

    Date Utils

    Help
    2
    3
    415
    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.
    • E
      Ender007 last edited by

      When i use date.endOfDate(,‘month’). I got this error : TypeError: t.getFullYear is not a function.
      i don’t get it because i use the date.startOfDate(,‘month’) it’s working…

        state.PaieCalendar[0].EndPeriod = date.formatDate(
          date.endOfDate(payload, "month"),
          "YYYY/MM/DD"
        );
      1 Reply Last reply Reply Quote 0
      • E
        Ender007 last edited by

        state.PaieCalendar[0].EndPeriod = date.formatDate(
        date.subtractFromDate(
        date.startOfDate(date.addToDate(payload, { month: 1 }), “month”),
        { days: 1 }
        ),
        “YYYY/MM/DD”
        );
        i found this but…

        1 Reply Last reply Reply Quote 0
        • M
          mcemkilinc last edited by

          I find date-fns module very helpful

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