Ecom:DiscountValidationResult.ValidFrom

Version: 9.9.0 date  

Summary

Returns the start date of the discount validity.

Settings

The value is based on the Valid from control value in the General section for the discount.

Examples

Outputting the template tag

@GetDate("Ecom:DiscountValidationResult.ValidFrom")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetDate("Ecom:DiscountValidationResult.ValidFrom"); }

Outputting the template tag

<!--@Ecom:DiscountValidationResult.ValidFrom-->

Check if date has a value

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