Views Index, List views show date in wrong format

Asked

Viewed 52 times

3

I am developing an ASP.Net MVC project and the Views Index and Listing Views show the date in Year/Month/Day format, but I want them to show in Day/Month/Year format.

What do I do?

Show 1 more comment

1 answer

1


Possibly your Windows is in English, which makes the configuration of date formats be in American format.

In the archive Web.config, add the following:

<configuration>
  ...
  <system.web>
    ...
    <globalization culture="pt-BR" enableClientBasedCulture="false" uiCulture="pt-BR" />
    ...
  </system.web>
  ...
</configuration>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.