Menu

#390 Change to DD/MM/YYYY Date Format

Future_Requests
open
nobody
None
1
2020-07-10
2017-08-15
Anonymous
No

Dear Support,

I would like to change the date from MM/DD/YYYY to DD/MM/YYYY. Can you please let me know how to do that? I changed the language on Firefox, Chrome. And they are working fine but I don’t think that all users can do that on their laptop. I need to modify this in MRBS.
Thank you.

1 Attachments

Discussion

  • Campbell Morrison

    Set the following in your config file:

    $disable_automatic_language_changing = 1;
    $default_language_tokens = "en-GB";
    
     
    • Anonymous

      Anonymous - 2019-11-18

      Thansk you Campbell Morrison This did the trick for me.

       
  • John Beranek

    John Beranek - 2017-08-15

    Does he/she not need to override locale? If so, it will depend on the OS the server runs on:

    Linux:

    $override_locale = "en_GB.UTF-8";
    

    Windows:

    $override_locale = "eng";
    
     
    • Campbell Morrison

      Yes, you might think so and that's what I thought at first. But I tested the $override_locale change and that doesn't change the date format in the datepicker. To make the datepicker change you have to change the language tokens.

      Whether that's the desired behaviour or not probably needs a bit of thought.

       
  • Anonymous

    Anonymous - 2020-07-10

    Thank You Campbell Morrison, this worked fro me.

    Cheers!!!!

     
MongoDB Logo MongoDB