Global:OMC.Visitor.LastVisit

Version: - datetime  

Summary

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

@GetDateTime("Global:OMC.Visitor.LastVisit")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetDateTime("Global:OMC.Visitor.LastVisit"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetDateTime("Global:OMC.Visitor.LastVisit"); }

Outputting the template tag

<!--@Global:OMC.Visitor.LastVisit-->

Check if datetime 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)-->