DWDateMedium

Version: - string  

Summary

Returns the current date using the medium format.

Settings

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

Remarks

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

Examples

Outputting the template tag

@GetString("DWDateMedium")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@DWDateMedium-->

Check if string has a value

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