Your address will show here +12 34 56 78

Home Forums WP ESTATE – Real Estate WordPress Theme FORUM Change Date Format in WP ESTATE (including booking calendar)

This topic contains 1 reply, has 1 voice, and was last updated by  Anna 3 years, 5 months ago.

  • Author
    Posts
  • #23547

    Anna
    Keymaster
    Look in libs/front_end_submission.php and in property.php    for  datepicker
    Looks like this:jQuery(“#property_date”).datepicker({
    dateFormat : “yy-mm-dd”
    });change to a new format.

    help for dateformat http://api.jqueryui.com/datepicker/#option-dateFormat

    To change the date format in advanced search, go to

    map-search-form
    line 189

    —————–

    For booking form calendar

    The date format needs to be changed in javascript . So you need to locate where we apply the datepicker (do a search per project ofr datepicker) and then adjust rhe javascript instruction using dateformat instruction:

    for example

    jQuery(document).ready(function(){
    
    jQuery("#openhouse_date").datepicker({
    
    dateFormat : "DD,MM dd, yy"
    
    });
    
    });

    See these resources also : http://api.jqueryui.com/datepicker/#utility-format

    http://api.jqueryui.com/datepicker/#option-dateFor

    Thanks

    • This topic was modified 3 years, 8 months ago by  Anna.
    • This topic was modified 3 years, 7 months ago by  Anna.
    • This topic was modified 3 years, 7 months ago by  Anna.
    • This topic was modified 3 years ago by  Anna.
    • This topic was modified 3 years ago by  Anna.
  • #35725

    Anna
    Keymaster

    NOTES:

    – old properties must be saved again to show the new date format

    • This reply was modified 3 years, 4 months ago by  Anna.

You must be logged in to reply to this topic.