Remember me

Date Field Format

6 years 7 months ago #1

  • Coughlin Printing's Avatar
  • Coughlin Printing
  • Posts: 79
Is there a way we can choose to use US formatting for the date when using the calendar picker? (MM/DD/YYYY vs. DD/MM/YYYY)

6 years 7 months ago #2

  • Artem's Avatar
  • Artem
  • Posts: 11342
Hello Mike,

Go to: components/com_baforms/assets/js/ba-form.js
Line: 1606
Find:
ifFormat: "%d %B %Y",

You need to change this values %d %B %Y. More about values you can find here:
dynarch.com/jscal/#sec34

Many thanks,
Artem, Balbooa.com

6 years 7 months ago #3

  • Coughlin Printing's Avatar
  • Coughlin Printing
  • Posts: 79
Thank you! That works.

Since this change will be reverted if an update is applied, I recommend adding this as an option in the field settings.
Powered by Kunena Forum