Gridbox Store App Released

Mon. - Fri. 9 am - 5 pm Ask a Question
Remember me

order of calendar in forms

1 year 6 months ago #1

  • Gonzalo's Avatar
  • Gonzalo
  • Posts: 1
Hello, I am working in EEUU site and I'm using the form. But when I put the calendar field and check it the order is: dd/mm/yyyy,
I need to change at mm/dd/yyyy How can I do it?

1 year 6 months ago #2

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 12190
Hello,
Thank you for contacting us

You can change at the ba-form.js (components/com_baforms/assets/js/ba-form.js) at the line 1634
ifFormat: "%d %B %Y",
But after the update, all changes will be lost.

Regards,
Vyacheslav, Balbooa.com

7 months 1 week ago #3

  • Joel's Avatar
  • Joel
  • Posts: 8
How would you change this in Forms 2.x?

7 months 4 days ago #4

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 12190
Hello,
Thank you for contacting us

You can do this in a file form.php (components/com_baforms/controllers/form.php)
At the line 157

More details in the documentation.
www.php.net/manual/ru/function.date.php

Regards,
Vyacheslav, Balbooa.com
Powered by Kunena Forum