Undefined variable $__env (View: /var/www/html/public) (View: /var/www/html/resources/themes/velocity/views/home/index.blade.php)
Whenever i try to run npm run production and npm run watch in pacakages/webkul/admin, packages/webkul/ui and packages/webkul/shop, The following error occurs.How to solve it
Format Date picker on admin panel - flatpickr
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 :]
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
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.