Retrieves product created date.


  • Full name: the_product_created_date
  • Defined in: cms/core/Shared/Helpers/product.php

Parameters

Parameter Type Description
$productId string Product id.
$format string Format to use for retrieving the date the product was created.
Accepts 'G', 'U', or php date format value specified
in 'date_format' option. Default empty.

Return Value

string

Formatted product created date string or Unix timestamp if $format is 'U' or 'G'. '' on failure.