Forum:Message.Created

Version: - date  

Summary

Returns the date the message was created.

Settings

The value is based on the Date field for the forum thread/post.

Examples

Outputting the template tag

@GetDate("Forum:Message.Created")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetDate("Forum:Message.Created"); }

Outputting the template tag

<!--@Forum:Message.Created-->

Check if date has a value

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