DwDateLong

Version: -  

Summary

Returns the current date using the long format.

Settings

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

Remarks

The value is formatted according to the Dynamicweb system long date settings.

Examples

Outputting the template tag

@GetObject("DwDateLong")

Check if tag has a value

@if(!var.IsNullOrWhiteSpace(GetObject("DwDateLong"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ var storedTag = GetObject("DwDateLong"); }

Outputting the template tag

<!--@DwDateLong-->

Check if object has a value

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