WordPress.org

Ready to get started?Download WordPress

Forums

FormBuilder
Simple change to Datestamp, shows data in dd/mm/yyyy (3 posts)

  1. tehias
    Member
    Posted 2 years ago #

    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/

  2. scottyotm
    Member
    Posted 2 years ago #

    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!

  3. Daniel
    Member
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic