UserManagement:User.ValidTo

Version: - date  

Summary

Returns the end date of the validity of a user.

Settings

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

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

Examples

Outputting the template tag

@GetDate("UserManagement:User.ValidTo")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if date has a value

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