Ecom:Product.Created

Version: - date  

Summary

Returns the creation date of the current product.

Settings

The value is generated automatically.

Remarks

Includes the option to add date extensions in order to format the creation date. 

See Date/time tag extensions for further details about formatting this date. 

(Prefix : Ecom:Product.Created)

Examples

Outputting the template tag

@GetDate("Ecom:Product.Created")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetDate("Ecom:Product.Created"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetDate("Ecom:Product.Created"); }

Outputting the template tag

<!--@Ecom:Product.Created-->

Check if date has a value

<!--@If Defined(@Ecom:Product.Created)--> Let's output this tag here: <strong><!--@Ecom:Product.Created--></strong> <!--@EndIf(@Ecom:Product.Created)-->