How to retrieve a date attribute in an email

I guess persistence pays off, after some searching on Google I fixed it with something totally different. The getResource method is depricated, but this does what I was looking for.

$productdate = $_item->getProduct()->getResource()->getAttribute('productdate')->getFrontend()->getValue($_item->getProduct());
1 Like