Answers.Body: <p>Yes, the <code>date()</code> filter you use (see <a href="http://twig.sensiolabs.org/doc/filters/date.html" rel="nofollow">Twig docs</a>) allows you to format dates with the same <a href="http://php.net/date" rel="nofollow">formating characters</a> as the php date function takes. All language dependent parts are returned in the language of the current locale. I don't know if you can change that primary locale in the control panel, but you could do that in the DB.</p>
  
  <p>As you noted in the comments to your question, you want the CP to be in english. This is possible even if you set the site's locale to another language; the site's locale and the user language for the CP are different things.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-07-16T06:26:05.927Z
Answers.Text: I guess I should give it a try then. How do I set the site's locale to another language without doing any harm?
Answers.UserDisplayName: osh
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-07-16T11:33:18.873Z
Answers.Text: @Oyvind as I wrote, I think the only way to change the primary locale is to do it in the database directly ('craft-locales' table → 'locale' column). Change this to your desired front-end locale (eg. 'it' with all lowercase).
Answers.UserDisplayName: carlcs
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-05T16:28:05.220Z
Answers.Text: Cheers, that worked fine for me.
Answers.UserDisplayName: erwinheiser
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-07-15T20:36:59.120Z
Answers.LastActivityDate: 2014-08-15T11:51:24.333Z
Answers.LastEditDate: 2014-08-15T11:51:24.333Z
Answers.UserDisplayName: carlcs
Answers.Body: <p>I think <a href="https://craftcms.stackexchange.com/questions/1039/multilingual-dates-where-date-format-varies">Multilingual Dates where date format varies</a> pretty much covers it.</p>
  <p>For details on date formats you will want to look at php's <a href="https://www.php.net/manual/en/function.date.php" rel="nofollow noreferrer">date format documentation</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-07-15T18:27:24.223Z
Answers.Text: I'm not using Craft multilangual though. Its just a tweak for this one thing. So, the post 'Multilingual Dates where date format varies' doesn't help me much.
Answers.UserDisplayName: osh
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-07-15T17:59:56.637Z
Answers.LastActivityDate: 2014-07-15T17:59:56.637Z
Answers.LastEditDate: 2023-11-17T20:38:18.640Z
Answers.UserDisplayName: Marion Newlevant
Body: <p>I'm doing this:</p>
  
  <pre><code>{# Get events from `events` section in desired sort order #}
  {% set allEvents = craft.entries.section('events').order('eventsDate asc') %}
  
  {# Loop through `allEvents` and print the list #}
  {% for event in allEvents %}
      &lt;li&gt;{{ event.title }} - {{ event.eventsDate|date('j F, Y') }}&lt;/li&gt;
  {% endfor %}
  </code></pre>
  
  <p>I guess I can do something with this: <a href="http://php.net/manual/en/datetime.formats.date.php" rel="nofollow">http://php.net/manual/en/datetime.formats.date.php</a>, but I need to display months in my native language, which is slightly different from how Craft outputs it. </p>
  
  <p>For example I'd like it to say "7 des", not "07 dec", "15 mai", not "15th may" and so on.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-07-15T19:06:23.747Z
Comments.Text: Sorry for the closing, Oyvind. Didn't read your question properly enough and thought Marion is right, that you will find an answer in that other Q/A. Voted to reopen this!
Comments.UserDisplayName: carlcs
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-07-15T19:30:37.107Z
Comments.Text: Which primary locale (language) did you choose during the installation?
Comments.UserDisplayName: carlcs
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-07-15T20:24:08.977Z
Comments.Text: My Craft installation is english. Its better that way, when reading documentation and so on. The only language tweak I need to do is for how months is printed. :)
Comments.UserDisplayName: osh
Tags: <localization><datetime><date>
Title: Is it possible to output month names in my native language?
ThreadText: # Is it possible to output month names in my native language?
  
  (Asked by: username_0 on 2014-07-15)
  
  I'm doing this:
  
  ```
  {# Get events from `events` section in desired sort order #}
  {% set allEvents = craft.entries.section('events').order('eventsDate asc') %}
  
  {# Loop through `allEvents` and print the list #}
  {% for event in allEvents %}
      <li>{{ event.title }} - {{ event.eventsDate|date('j F, Y') }}</li>
  {% endfor %}
  
  ```
  
  I guess I can do something with this: <http://php.net/manual/en/datetime.formats.date.php>, but I need to display months in my native language, which is slightly different from how Craft outputs it.
  
  For example I'd like it to say "7 des", not "07 dec", "15 mai", not "15th may" and so on.
  
  **Tags:** localization, datetime, date
  
  > **Comments:**
  > **username_1**: Sorry for the closing, Oyvind. Didn't read your question properly enough and thought username_3 is right, that you will find an answer in that other Q/A. Voted to reopen this!  
  > **username_1**: Which primary locale (language) did you choose during the installation?  
  > **username_0**: My Craft installation is english. Its better that way, when reading documentation and so on. The only language tweak I need to do is for how months is printed. :)  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2014-07-15. Score: 3
  
  Yes, the `date()` filter you use (see [Twig docs](http://twig.sensiolabs.org/doc/filters/date.html)) allows you to format dates with the same [formating characters](http://php.net/date) as the php date function takes. All language dependent parts are returned in the language of the current locale. I don't know if you can change that primary locale in the control panel, but you could do that in the DB.
  
  As you noted in the comments to your question, you want the CP to be in english. This is possible even if you set the site's locale to another language; the site's locale and the user language for the CP are different things.
  
  > **Comments:**
  > **username_0**: I guess I should give it a try then. How do I set the site's locale to another language without doing any harm?  
  > **username_1**: @Oyvind as I wrote, I think the only way to change the primary locale is to do it in the database directly ('craft-locales' table → 'locale' column). Change this to your desired front-end locale (eg. 'it' with all lowercase).  
  > **username_2**: Cheers, that worked fine for me.  
  
  ---
  
  ### Answer by username_3 on 2014-07-15. Score: 1
  
  I think [Multilingual Dates where date format varies](https://craftcms.stackexchange.com/questions/1039/multilingual-dates-where-date-format-varies) pretty much covers it.
  
  For details on date formats you will want to look at php's [date format documentation](https://www.php.net/manual/en/function.date.php)
  
  > **Comments:**
  > **username_0**: I'm not using Craft multilangual though. Its just a tweak for this one thing. So, the post 'Multilingual Dates where date format varies' doesn't help me much.  
  
  ---
  
  