WP Residence Help WP Residence Help

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

Technical: change date format

4070 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

Related Articles

  • How to Add Custom Fields to the Login, Register and Forgot Password Forms
  • 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
MLSImportWordPress IDX Plugin for MLS ListingsImport MLS listings into your WordPress website, customize your property pages, and keep your inventory updated.Start free 30-day trial →

Help Categories

  • 111 Installation & Changelog
  • 19Agent, Agency & Developers
  • 5Blog Posts & Blog Lists
  • 14Footer
  • 38Header
  • 2IDX & MLSImport
  • 23Maps & Location Settings
  • 50Multilingual Websites – WPEstate Translate (Included)
  • 21Pages & Page Templates
  • 4Payments & Monetization
  • 20Property Lists, Categories & Archive
  • 38Property Single Page
  • 32Search & Filtering
  • 170Technical how to | Custom Code
  • 9Technical: Actions and filters
  • 6Technical: Child Theme
  • 86Theme Options & Global Settings
  • 6Theme Translation & Localization
  • 28Third Party Plugins Compatible
  • 16WPBakery Shortcodes
  • 51WPResidence / WPEstate CRM
  • 9WPResidence Elementor Studio
  • 39WPResidence Elementor Widgets
  • 79WPResidence FAQ

Join Us On

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