Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am having trouble displaying the year. This code prints:
Issue Date: June 2016-01-01 00:00:00
I need it to print:
Issue Date: June 2016
print
$entity->field_month['und'][0]['value'] . " " . $entity->field_year['und'][0]['value'];
Any help is appreciated.
Comments
Comment #2
DCLoganGuy CreditAttribution: DCLoganGuy commentedComment #3
aspilicious CreditAttribution: aspilicious commentedThis is not the place to ask these questions. You should take a look at http://drupal.stackexchange.com/.
You'll get more help there.
Thnx for using Display Suite.