WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields
ACF PLUGIN and data format in italian (1 post)

  1. manlioma
    Member
    Posted 1 year ago #

    Hi, I have this piece of code from the Advanced Custom Field Plugin that returns DATE

    my custom field is "data"

    <?php
    	$date = DateTime::createFromFormat('Ymd', get_field('data'));
            setlocale(LC_TIME, 'ita', 'it_IT');
            echo $date->format('D/d/Y');
    ?>

    but doesn't works, It returns date in english format like this "Thu/20/Jun",
    but I want this "Mar/20/Giu"

    anyone could help me ?

    http://wordpress.org/extend/plugins/advanced-custom-fields/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic