<p>I made a plugin to do this.</p>

<p><a href="https://github.com/IndigoViking/Translitedated" rel="nofollow noreferrer">https://github.com/IndigoViking/Translitedated</a></p>

<p>Use it just like the |date filter (new filter is |dated) and pass it the date format and the locale you would like to use. In you case the locale would be 'en'.</p>

<p>Example from your question:</p>

<pre><code>{{ block.timeLimit|dated('M d Y H:i', 'en') }}
</code></pre>

<p>This will always output an English date.</p>

<p>If you have any issues with it, just submit an issue via GitHub.</p>

<p>It's available via packagist so you can run</p>

<pre><code>composer require indigoviking/translitedated
</code></pre>

<p>And it is in process to be approved on the plugin store (should only be a day or so. If you need more features/requests/or help with it, please let me know!</p>

CC BY-SA 4.0
2018-12-10T14:53:26.133Z
2018-12-10T14:53:26.133Z
Chattervast
<p>You can do this in Twig as well (without a plugin):</p>

<pre><code>{% set formatter = create({ class: 'craft\\i18n\\Formatter', locale: 'en' }) %}
{{ formatter.asDate(now, 'php:j F Y') }}
</code></pre>

CC BY-SA 4.0
2020-02-15T16:31:12.783Z
2020-02-15T16:31:12.783Z
Sten Van den Bergh
<p>with <code>{{ block.timeLimit|date('M d Y H:i')}}</code> i can get the real Date &amp; Time in always the real Language from the Site. 
If the Page is German output is Dez, in English output is Dec.</p>

<p>How can i set the output of this Date always to en? Whatever language the Site has?</p>

<p>Thanks for every help!</p>

CC BY-SA 4.0
2018-12-02T00:37:25.130Z
Why can’t your date fields just be numeric?
Brett
CC BY-SA 4.0
2018-12-02T11:41:11.523Z
That is not a option. I need it in english. I can't get it, is it that complicated? :D
askino
CC BY-SA 4.0
2018-12-09T01:16:28.577Z
You could make a twig filter to do this (or I might if there really is a need for this). From the little reading I’ve done so far, |date runs on PHPs datetime and messing with language requires locale changing.... etc. didn’t see a way to do this with |date
Chattervast
<craft3><localization><datetime>
Multi-Language Site but the Date should be always in English
# Multi-Language Site but the Date should be always in English

(Asked by: username_0 on 2018-12-01)

with `{{ block.timeLimit|date('M d Y H:i')}}` i can get the real Date & Time in always the real Language from the Site.
If the Page is German output is Dez, in English output is Dec.

How can i set the output of this Date always to en? Whatever language the Site has?

Thanks for every help!

**Tags:** craft3, localization, datetime

> **Comments:**
> **username_1**: Why can’t your date fields just be numeric?  
> **username_0**: That is not a option. I need it in english. I can't get it, is it that complicated? :D  
> **username_2**: You could make a twig filter to do this (or I might if there really is a need for this). From the little reading I’ve done so far, |date runs on PHPs datetime and messing with language requires locale changing.... etc. didn’t see a way to do this with |date  

---

## 2 answers

### Answer by username_2 on 2018-12-10. Score: 3

I made a plugin to do this.
https://github.com/IndigoViking/Translitedated
Use it just like the |date filter (new filter is |dated) and pass it the date format and the locale you would like to use. In you case the locale would be 'en'.
Example from your question:
{{ block.timeLimit|dated('M d Y H:i', 'en') }}

This will always output an English date.
If you have any issues with it, just submit an issue via GitHub.
It's available via packagist so you can run
composer require indigoviking/translitedated

And it is in process to be approved on the plugin store (should only be a day or so. If you need more features/requests/or help with it, please let me know!


---

### Answer by username_3 on 2020-02-15. Score: 1

You can do this in Twig as well (without a plugin):
{% set formatter = create({ class: 'craft\\i18n\\Formatter', locale: 'en' }) %}
{{ formatter.asDate(now, 'php:j F Y') }}


---

