Bagisto Forum

    Bagisto

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

    Format Date picker on admin panel - flatpickr

    General Discussion
    2
    2
    531
    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.
    • S
      sebastian last edited by

      Hello, how to change the format of the date from Y-m-d to d.m.Y, also change the name of months.

      I have tried some solutions from GitHub, adding a locale and file but without success.

      Maybe im adding the file in a bad directory.

      Please Help :]

      Screenshot

      1 Reply Last reply Reply Quote 0
      • S
        shivam-webkul last edited by

        Hi @sebastian ,

        If you want to change only dashboard filter date format then you need to override bagisto vue datetime.vue component,
        please follow these link
        https://github.com/bagisto/bagisto/issues/1992

        after that only need to change the format ref - https://flatpickr.js.org/examples/

        And if you want to change whole admin section date format which is your requirement Y-m-d to d.m.Y, then simply update some code of datetime.vue which is inside packages/Webkul/Ui/src/Resources/assets/js/components/datetime.vue

        then simply run npm run watch for compiling the vue assets inside the Ui package root.

        Thanks

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