Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

UK Date Format is incorrect #4056


User avatar
0
Mitch created

When selecting the Language/Culture at the top of the screen, the British flag is shown beside the word "English". However, the date format that is used is American which is "mm/dd/yyyy" which is very confusing. The UK/British date format is "dd/mm/yyyy".

Would it be possible to correct this by using "dd/mm/yyyy" instead when selecting the British flag and maybe adding a USA flag for the "mm/dd/yyyy" format.


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @Mitch,

    You can change the flah of current English language and add en-gb/en-us languages seperately. I assume when we set culture to only "en" ASP.NET thinks it is en-us. If so, we should change the default language name to English(US).

  • User Avatar
    0
    mumfie created

    Hi @Mitch I encountered this issue recently and overcame it by the following

    Created a new record in SQL table AbpLanguages with displayName='English (UK), icon=famfamfam-flags gb , Name=en-GB Duplicated file MyProject.Web.Mvc\wwwroot\Common\Scripts\Datatables\Translations\English.json as English (United Kingdom).json to overcome a datatables javascript error.

    HTH

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks @mumfie,

    I didn't know there was a problem with datatables.