src/Object/Product/Product.php
public function setDatePublished($datePublished)
    {
        try {
            $this->datePublished = DateHelper::format($datePublished);
        } catch (\Exception $e) {
            throw new NostoException($e->getMessage());
        }
    }
public function setDatePublished($datePublished)
    {
        try {
            $this->datePublished = DateHelper::format($datePublished);
        } catch (\Exception $e) {
            throw new NostoException($e->getMessage());
        }
    }
public function setDatePublished ( $ datePublished ) { try { $ this -> datePublished = DateHelper :: format ( $ datePublished ) ; } catch ( \ Exception $ e ) { throw new NostoException ( $ e -> getMessage ( ) ) ; } }
Sets the product publication date in the shop
in the Y-m-d format.

@param $datePublished
@throws NostoException
Sets the product publication date in the shop in the Y - m - d format .