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