• Resolved cmboss08

    (@cmboss08)


    Hello,

    I have a custom template for the [property_overview] shortcode, which is performing $property[‘movein_date’], where movein_date is a custom property attribute set to use a date picker. When using the overview shortcode, I am getting a mixed set of date formats. some will be 2016-05-05 while others display as 5/5/2016. Is there any way to control the date format displayed? When I view each individual property, the date format is consistently displayed as May 5, 2016.

    https://www.ads-software.com/plugins/wp-property/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor MariaKravchenko

    (@mariakravchenko)

    Hello.

    At the moment date format should be taken from your general settings of the site.
    If not, try to update particular property which is not showing correctly.

    Let me know if that helped.

    Regards.

    Thread Starter cmboss08

    (@cmboss08)

    It looks like some of my users were entering dates by hand instead of using the date picker. I had not accounted for that!

    I doubt I can train them to use a standard date format, so instead I changed:
    <?php echo $property['movein_date']; ?>
    to:
    <?php echo date("d-m", strtotime($property['movein_date'])); ?>

    Thanks for pointing me in the right direction, Maria!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Date Fields in [property_overview]’ is closed to new replies.