DwDate
Version: - dateSummary
Returns the current date.
Settings
The value is generated automatically.
Remarks
Includes the option to add date extensions in order to format the updated date.
See Date/time tag extensions for further details about formatting this date.
(Prefix : DwDate)
Examples
Outputting the template tag
@GetDate("DwDate")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetDate("DwDate"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetDate("DwDate");
}
Outputting the template tag
<!--@DwDate-->
Check if date has a value
<!--@If Defined(@DwDate)-->
Let's output this tag here: <strong><!--@DwDate--></strong>
<!--@EndIf(@DwDate)-->