• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Get user/visitor registered date in template variables

#1
Hi there

I'd like to get a visitor's registered date for use in an evaluation (if date > X) for example. I've tried a search here and found plenty of advice about handling dates in PHP, but not the templates.
 

Chris D

XenForo developer
Staff member
#2
The register date is available on the visitor record in templates as:
Code:
{$visitor.register_date}
The condition would look something like this:
Code:
<xen:if is="{$visitor.register_date} > X">
    // Do something
</xen:if>