<p>Try</p>

<pre><code>{% set currDay = now|date('M j, Y H:i:s') %}
{{ currDay }}
</code></pre>

<p>Applying the <code>|date()</code> filter to the <code>now</code> object when you set the variable <code>currDay</code> makes <code>currDay</code> a string. When you then try try to reapply <code>|date()</code> a second time, something funny must be happening..?</p>

CC BY-SA 4.0
2019-01-15T17:16:05.090Z
2019-01-15T17:23:04.850Z
2019-01-15T17:23:04.850Z
Oli
<p>in the CP settings, timezone is set to UTC +1 Europe/Zurich
when I try this code:</p>

<pre><code>{% set currDay = now|date() %}
    {{ currDay|date('l d F Y') }}
</code></pre>

<p>it outputs "Mercredi, 16 janvier 2019", but we're still Tuesday 15th</p>

<p>Craft 3.0.37</p>

<datetime>
Current day display on day later
# Current day display on day later

(Asked by: username_0 on 2019-01-15)

in the CP settings, timezone is set to UTC +1 Europe/Zurich
when I try this code:
{% set currDay = now|date() %}
    {{ currDay|date('l d F Y') }}

it outputs "Mercredi, 16 janvier 2019", but we're still Tuesday 15th
Craft 3.0.37

**Tags:** datetime

---

## 1 answers

### Answer by username_1 on 2019-01-15. Score: 1 | Accepted answer

Try
{% set currDay = now|date('M j, Y H:i:s') %}
{{ currDay }}

Applying the |date() filter to the now object when you set the variable currDay makes currDay a string. When you then try try to reapply |date() a second time, something funny must be happening..?


---

