1. 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

Discussion in 'XenForo Development Discussions' started by Jamie Edwards, Jul 12, 2016.

  1. Jamie Edwards

    Jamie Edwards Member

    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.
  2. Chris D

    Chris D XenForo Developer Staff Member

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

Share This Page