Version: - date  


Returns the start date of the validity of a user.


The value is based on the Valid from dropdowns in the Validity section for a user.

(User Management > User > Options tab > Validity section > Valid from)


Outputting the template tag


Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetDate("UserManagement:User.ValidFrom"); }

Outputting the template tag


Check if date has a value

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