Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7888211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:46:32+00:00 2026-06-03T05:46:32+00:00

I have installed the SonataIntlBundle bundle. The default format_date results in a format like

  • 0

I have installed the SonataIntlBundlebundle. The default format_date results in a format like day-number month-name year.

{{ date_time_object | format_date }} => '1 août 2011'Source

Now, I want to change this default to dayNumber-monthNumber-yearNumber for people with a english translation (en) and to monthNumber-dayNumber-yearNumberfor people with a dutch translation (nl). How should I do this and is their any documentation?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T05:46:34+00:00Added an answer on June 3, 2026 at 5:46 am

    {{ date_time_object | format_date('MM-dd-yyyy', 'nl') }} would work. As defined in the bottom of the documentation.

    Edit

    To do it globally you can extend DateTimeHelper class and set sonata.intl.templating.helper.datetime.class parameter to that class in app/config/config.yml.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed a library that has some functions with the same name as
have installed Web Developer on Firefox 5.0 and personally found it redundant. would like
I have installed Redmine on Debian. Also have Git with master (default) and develop
I have installed xampp on my Ubuntu machine, and would like to be able
I have installed WPF Toolkit: Location: C:\Program Files\WPF Toolkit\v3.5.40320.1\WPFToolkit.dll Name: WPFToolkit, Version=3.5.40128.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35
I have installed the package to display line number in emacs. However, each time
I have installed new eclipse and ADT, i have JDK 1.6 installed in the
I have installed XCode 4.2 on my macbook with specifications 2.1 GHz and 4GB
I have installed Avg Antivirus for testing purpose. After Testing when I have tried
I have installed Python 2.7 (Windwos 7). However, I am unable to load the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.