Title: Localised Date Format
Last modified: August 22, 2016

---

# Localised Date Format

 *  Resolved [caleb.tapp](https://wordpress.org/support/users/calebtapp/)
 * (@calebtapp)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/localised-date-format/)
 * Is there a way to change the date so it’s formatted as DD/MM/YY (or at least 
   so it respects WordPress’s localisation setting)? If not, will that feature be
   added in the future?
 * [https://wordpress.org/plugins/cf7-advanced-datepicker/](https://wordpress.org/plugins/cf7-advanced-datepicker/)

Viewing 14 replies - 1 through 14 (of 14 total)

 *  Plugin Author [Ajit Kumar Satpathy](https://wordpress.org/support/users/theajit/)
 * (@theajit)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/localised-date-format/#post-5885561)
 * You can Set Date format by this below method:
    Plugin >> Editors >> Select Cf7
   Advanced DatePicker >> js
 * Then in that change the format to DD/MM/YYYY
 * You can check jquery date formatting for the same.
 * Thanks
 *  [mintynz](https://wordpress.org/support/users/mintynz/)
 * (@mintynz)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/localised-date-format/#post-5885815)
 * I changed it like as below in ‘ cf7-advanced-datepicker/js/custom-script.js’,
   but it appears to have no effect at all.
 * What am I doing wrong?
 *     ```
       jQuery(document).ready(function($) {
   
         $('.cf7-adv-datepicker').datepicker({
   
            autoclose: true,
   
            showAnim: setting.effect,
   
            changeMonth: setting.monyearmenu,
   
            changeYear: setting.monyearmenu,
   
            showWeek: setting.showWeek,
   
       	 minDate: setting.date,
       dateFormat: "yy-mm-dd"
   
         });
       ```
   
 *  [yakaroo](https://wordpress.org/support/users/yakaroo/)
 * (@yakaroo)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/localised-date-format/#post-5885816)
 * This is the js code…there is no date format in there to change?
 * jQuery(document).ready(function($) {
 *  $(‘.cf7-adv-datepicker’).datepicker({
 *  autoclose: true,
 *  showAnim: setting.effect,
 *  changeMonth: setting.monyearmenu,
 *  changeYear: setting.monyearmenu,
 *  showWeek: setting.showWeek,
 *  minDate: setting.date,
 *  });
 *  //verion 1.0 fail-safe
 *  $(‘#cf7-adv-datepicker’).datepicker({
 *  autoclose: true,
 *  showAnim: setting.effect,
 *  changeMonth: setting.monyearmenu,
 *  changeYear: setting.monyearmenu,
 *  showWeek: setting.showWeek,
    minDate: setting.date,
 *  });
 * });
 *  [mintynz](https://wordpress.org/support/users/mintynz/)
 * (@mintynz)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/localised-date-format/#post-5885817)
 * Yakaroo, I looked at the jQuery datepicker docs, and it seems by adding another
   parameter to each of those functions:
    `dateFormat: "yy-mm-dd"`
 * then it should set the date format. But it appears to have no effect.
 * I also tried adding this before the final closing brackets:
 * `$( "#cf7-adv-datepicker" ).datepicker( "option", "dateFormat", "yy-mm-dd" );`
 * but again, no effect.
 * Ajit, any tips??
 *  Plugin Author [Ajit Kumar Satpathy](https://wordpress.org/support/users/theajit/)
 * (@theajit)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/localised-date-format/#post-5885818)
 * Hi mintynz,
 * dateFormat: ‘dd-mm-yy’
 * Can you try this where you have used dateFormat: “dd-mm-yy”?
 *  [mintynz](https://wordpress.org/support/users/mintynz/)
 * (@mintynz)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/localised-date-format/#post-5885820)
 * Hi Ajit,
 * Thanks for the quick reply- I’m sorry to be slow myself, but I didn’t get a notification
   about your post!
 * That *** worked ***. I copied your text above, and now I have a date format that
   works for NZ. Many thanks!
 * —–
    code that is working in “cf7-advanced-datepicker/js/custom-script.js” to 
   give day/month/year formatted date:
 *     ```
       jQuery(document).ready(function($) {
   
         $('.cf7-adv-datepicker').datepicker({
   
       dateFormat: 'dd-mm-yy',
   
            autoclose: true,
   
            showAnim: setting.effect,
   
            changeMonth: setting.monyearmenu,
   
            changeYear: setting.monyearmenu,
   
            showWeek: setting.showWeek,
   
       	 minDate: setting.date,
   
         });
   
         //verion 1.0 fail-safe
   
         $('#cf7-adv-datepicker').datepicker({
   
       dateFormat: 'dd-mm-yy',
   
            autoclose: true,
   
            showAnim: setting.effect,
   
            changeMonth: setting.monyearmenu,
   
            changeYear: setting.monyearmenu,
   
            showWeek: setting.showWeek,
       	 minDate: setting.date,
   
         });
       ```
   
 *  [fullej](https://wordpress.org/support/users/fullej/)
 * (@fullej)
 * [11 years ago](https://wordpress.org/support/topic/localised-date-format/#post-5885825)
 * Ive made the changes suggested to the js file but still have the following problem:
 * The date appears in the format dd/mm/YYYY in the form, but in the email generated
   it is in the format mm/dd/YY
 * How can I get the email to be dd/mm/YYYY ?
 * Thanks
 *  [mintynz](https://wordpress.org/support/users/mintynz/)
 * (@mintynz)
 * [11 years ago](https://wordpress.org/support/topic/localised-date-format/#post-5885826)
 * Fullej, does the date appear in the right format when it’s entered in the contact
   form, but not in the email? Or is it wrong in both?
 * Can you post your js code (as I have done above)?
 *  [fullej](https://wordpress.org/support/users/fullej/)
 * (@fullej)
 * [11 years ago](https://wordpress.org/support/topic/localised-date-format/#post-5885827)
 * Hi. |Thanks for the reply. Here is my code.
 *     ```
       jQuery(document).ready(function($) {
   
         $('.cf7-adv-datepicker').datepicker({
   
            dateFormat: 'dd-mm-yy',
   
            autoclose: true,
   
            showAnim: setting.effect,
   
            changeMonth: setting.monyearmenu,
   
            changeYear: setting.monyearmenu,
   
            showWeek: setting.showWeek,
   
       	 minDate: setting.date,
   
         });
   
         //verion 1.0 fail-safe
   
         $('#cf7-adv-datepicker').datepicker({
   
            dateFormat: 'dd-mm-yy',
   
            autoclose: true,
   
            showAnim: setting.effect,
   
            changeMonth: setting.monyearmenu,
   
            changeYear: setting.monyearmenu,
   
            showWeek: setting.showWeek,
       	 minDate: setting.date,
   
         });
   
       });
       ```
   
 *  [mintynz](https://wordpress.org/support/users/mintynz/)
 * (@mintynz)
 * [11 years ago](https://wordpress.org/support/topic/localised-date-format/#post-5885828)
 * Hmm. Strange- that all looks right.
 * You can see my version working here:
    [http://visiqueoptometrist.co.nz/make-an-appointment/](http://visiqueoptometrist.co.nz/make-an-appointment/)
 * Is your contact form similar?
 * Just to confirm: does the date appear in the right format when it’s entered in
   YOUR contact form, but not in the email? Or is it wrong in both?
 * Cheers
    Minty
 *  [fullej](https://wordpress.org/support/users/fullej/)
 * (@fullej)
 * [11 years ago](https://wordpress.org/support/topic/localised-date-format/#post-5885829)
 * Hi Minty,
 * Yes it works perfect in the front-end form, but is in the wrong format in the
   email generated.
    See [http://www.sharronbolton.co.uk/age-erased-face-lifting-serum/](http://www.sharronbolton.co.uk/age-erased-face-lifting-serum/)(
   need to select “Collect from Salon” to see date field)
 * John
 *  [mintynz](https://wordpress.org/support/users/mintynz/)
 * (@mintynz)
 * [11 years ago](https://wordpress.org/support/topic/localised-date-format/#post-5885830)
 * Uh, when I go there and try to put in a date, it doesn’t pop up the datepicker
   calendar (compare with my link above).
 * Shouldn’t it do that if you’re using it as an ‘advanced datepicker’ field??
 *  [fullej](https://wordpress.org/support/users/fullej/)
 * (@fullej)
 * [11 years ago](https://wordpress.org/support/topic/localised-date-format/#post-5885831)
 * It seems to not work in IE, try Firefox or Chrome.
 * I’ll look at the IE problem
 *  [mintynz](https://wordpress.org/support/users/mintynz/)
 * (@mintynz)
 * [11 years ago](https://wordpress.org/support/topic/localised-date-format/#post-5885832)
 * I was trying it with Firefox (Win 7.1, FF 38.01).
 * Well, all seems to be working for me now both with that and IE.
 * Datepicker puts in the right date. Just did a test submission- does the email
   look wrong?

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Localised Date Format’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cf7-advanced-datepicker.svg)
 * [CF7 Advanced DatePicker](https://wordpress.org/plugins/cf7-advanced-datepicker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-advanced-datepicker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-advanced-datepicker/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-advanced-datepicker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-advanced-datepicker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-advanced-datepicker/reviews/)

## Tags

 * [date](https://wordpress.org/support/topic-tag/date/)
 * [format](https://wordpress.org/support/topic-tag/format/)
 * [localisation](https://wordpress.org/support/topic-tag/localisation/)
 * [UK](https://wordpress.org/support/topic-tag/uk/)

 * 14 replies
 * 5 participants
 * Last reply from: [mintynz](https://wordpress.org/support/users/mintynz/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/localised-date-format/#post-5885832)
 * Status: resolved