DWTime

Version: - string  

Summary

Returns the current time.

Settings

The value is generated automatically based on the current server time.

Examples

Outputting the template tag

@GetString("DWTime")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("DWTime"); }

Outputting the template tag

<!--@DWTime-->

Check if string has a value

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