• Does anyone know how the date format can be changed to read day/month/year rather than month/day/year in Custom Contact Forms when using the pop-up calendar with the slug ccf_schedule_date?

    If you change the date format in ‘settings’ this has no effect. Thx

Viewing 6 replies - 1 through 6 (of 6 total)
  • Nick,
    Check the file custom-contact-forms-dashboard.php. Look for the code
    <td class="date"><?php echo date('m/d/y', $data->getDataTime()); ?></td>

    change to

    <td class="date"><?php echo date('d/m/y', $data->getDataTime()); ?></td>

    This was the only instance of m/d/y that I could find in the plugin, so that should do it.

    This very week I just sent a request for this, naming it European-date-format….

    Thanks for the suggestion but I would prefer an alternative to not change the .php files. But it will solve the problem for now.

    Piet,

    Thread Starter nick1900

    (@nick1900)

    Hi Mr Pritchett

    I found the custom-contact-forms-dashboard.php file in the widgets folder and changed the format to d/m/y as suggested but it didn’t make any difference to how the date actually formats in the field after selecting a date- it is still m/d/y!! Am I missing a step here? Thanks

    A bit late replying, but I had the same issue and wanted to share the solution. I tried the method above but it didn’t seem to make a difference.

    Look for wp-content/plugins/custom-contact-forms/js/jquery.ui.datepicker.js

    On or around line 55, look for

    dateFormat: 'mm/dd/yy'

    and change to:

    dateFormat: 'dd/mm/yy'

    This fixed it for me.

    Cheers,

    Simon

    I tried both above suggestions but it doesn’t work!
    Does anyone know any other solution for this?

    Thanks in advance for your time and help!

    @darianculbert, I was like you and found that above two suggestions do nothing…

    What you want to do is update the following in the file /custom-contact-forms/js/custom-contact-forms-datepicker.js:

    change line 4 from : $m(“.ccf-datepicker”).datepicker();

    to: $m(“.ccf-datepicker”).datepicker({ dateFormat: ‘D, d MM, yy’ });

    or whatever date format you want ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Custom Contact Forms – changing the date format to UK’ is closed to new replies.