The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. tehias
    Posted 4 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:


  2. scottyotm
    Posted 4 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
    Posted 4 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

  • FormBuilder
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic