XenForo Showing raw date/time in template

S

Soyuz_new

Guest
Hello,

I'm composing a new template and I need the raw, non-formatted date/time information. If I use this...

Code:

<xf:date time="{$thread.first_post_date}" />

...it shows something like...

Code:

<time class="u-dt" dir="auto" datetime="2022-12-13T09:55:27+0100" data-time="1670921727" data-date-string="13 Dic 2022" data-time-string="09:55" title="13 Dic 2022 a las 09:55">Today at 09:55</time>

But I only need "2022-12-13T09:55:27". Is there a template variable/code to get only that...

Read more

Continue reading...