WordPress.org

Support

Support » Plugins and Hacks » [Plugin: FormBuilder] Simple change to Datestamp, shows data in dd/mm/yyyy

[Plugin: FormBuilder] Simple change to Datestamp, shows data in dd/mm/yyyy

  • Little FYI…the form builder has a field type called ‘datestamp’ and displays a date in dd/mm/yyyy. This is somewhat confusing as most people would read ’04/06/2011′ as April 6th and not June 4th.

    Simple change…Go to edit the plugin

    Find the file called ‘formbuilder/js/calendar.js’

    Locate the line…
    document.getElementById(ths.opt[“input”]).value = day + “/” + month + “/” + year; // Date format is :HARDCODE:

    Make it look like…
    document.getElementById(ths.opt[“input”]).value = month + “/” + day + “/” + year; // Date format is :HARDCODE:

    http://wordpress.org/extend/plugins/formbuilder/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Will this change the date stamp on existing forms or only forms made after the change?

    Do I need to do anything else after changing the code? I changed the code updated the file and I am still getting the old date format.

    thank you!

    This fix worked for me – big thanks to tehias. I use 5 different forms and it updated the datestamp field on all of them.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: FormBuilder] Simple change to Datestamp, shows data in dd/mm/yyyy’ is closed to new replies.