WP Residence Help WP Residence Help

  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API
Home / Technical how to | Custom Code Required / Technical: change date format

Technical: change date format

3965 views 0
  • Change date format for Schedule a showing option

 

You need to edit js/ajaxcalls.js and at line 2770 http://prntscr.com/urswrs you have dateFormat : “yy-mm-dd”,
Replace the “yy-mm-dd” with your date format

 


E3REudS

For the attached image – go into membership.php,  function wpestate_get_pack_data_for_user_top at line 170. In that function look for

$expired_date = date(‘Y-m-d’,$expired_date); at line 212

The front_end_submission.php is in templates folder .

Also look for similar instruction in wp-content/plugins/wpresidence-core/post-types/memberhisp.php file.


oldO21r

Go into libs/stats.php and you have there date(‘m-d-Y’, time() ) for 2 times at line 15 and 94

Change the date format by replacing the string ‘m-d-Y’

This change will apply only for new dates.


  • Change date format in blog post unit

blog-unit-Residence

To change date format must be changed date format  (‘M d, Y’) in below PHP files:

wpresidence\templates\blog_unit.php

wpresidence\templates\blog_unit2.php


  • Change date format in date custom fields

date-custom-field-WPResidence

To change date format must be changed date format  yy-dd-mm in libs/help_functions.php file.

Screenshot:

date-fomat-WPresidence

This change will apply only for new dates. For old dates must be edited all properties date custom fields and then saved with new date format.

Technical how to | Custom Code Required

Related Articles

  • Technical: Change the Schedule Tour Email Text and the Form Default Message
  • Property list filter customization
  • Technical – How to Change the Minimum Image Dimensions for Property Uploads in WPResidence
  • Introduction to WPResidence Header Customization

Help Categories

  • 18Agent, Agency & Developers
  • 5Blog Posts & Blog Lists
  • 39Elementor Shortcodes Built-In
  • 46FAQ
  • 15Footer
  • 5Getting Started
  • 37Header
  • 2IDX & MLSImport
  • 6Installation & Setup
  • 24Installation FAQ
  • 23Maps & Location Settings
  • 21Multi-Language - Third Party Plugins
  • 6Other Third party Plugins
  • 21Pages
  • 4Payments & Monetization
  • 20Property Lists, Categories & Archive
  • 37Property Pages & Layouts
  • 31Search & Filtering
  • 162Technical how to | Custom Code Required
  • 8Technical: Actions and filters
  • 7Technical: Child Theme
  • 86Theme Options & Global Settings
  • 7Translations & Languages
  • 16WPBakery Shortcodes
  • 50WPEstate / WPResidence Translate Plugin
  • 51WPResidence / WPEstate CRM
  • 50WPResidence 5.0 Documentation
  • 9WPResidence Elementor Studio

Join Us On

Powered by WP Estate - All Rights Reserved
  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API