Can't add Express Date attribute to custom template

Permalink
I'm building a custom template for an Express List

I can bring in text attributes without a problem but when I try to add a date I get the error:

Call to undefined method Concrete\Core\Express\Entry\Search\Result\Item::getNewsletterDate()

Code used to retrieve date is:

<?php echo $item->getNewsletterDate(); ?>


Am I missing something here?

katalysis
 
katalysis replied on at Permalink Reply
katalysis
I was missing something, for anyone else stuck...
<?php echo $item->getEntry()->getNewsletterDate()->format('d M Y'); ?>