Consent.CreatedDate

Version: 9.5.0 date  

Summary

Returns datetime stamp of the consent creation.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetDate("Consent.CreatedDate")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetDate("Consent.CreatedDate"); }

Outputting the template tag

<!--@Consent.CreatedDate-->

Check if date has a value

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