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

  1. manlioma
    Posted 2 years ago #

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

    my custom field is "data"

    	$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 ?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Custom Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic