_localeDate = $localeDate; } /** * Retrieve attribute value * * @param \Magento\Framework\DataObject $object * @return mixed */ public function getValue(\Magento\Framework\DataObject $object) { $data = ''; $value = parent::getValue($object); if ($value) { $data = $this->_localeDate->formatDateTime( new \DateTime($value), \IntlDateFormatter::MEDIUM, \IntlDateFormatter::NONE ); } return $data; } }