UserManagement:User.ValidFrom

Version: - date  

Summary

Returns the start date of the validity of a user.

Settings

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)

Examples

Outputting the template tag

@GetDate("UserManagement:User.ValidFrom")

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

<!--@UserManagement:User.ValidFrom-->

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)-->