0
I’m having a problem with Razor (using MVC 2.1 .Net Core) when generating the screen, as follows code below, this appearing the correct date in my Local development environment, but after Publish appears in English in other environments, would be forced to be in Portuguese?
<p> <label> Data de Nascimento:</label>}
@Model.DataEmissaoAntecedentes.Value.ToLongDateString()
</p>
The page is in CSHTML, and is typed with a Model.
Configure the Culture of an olhda here https://answall.com/questions/137931/como-usar-recursos-portugu%C3%Aas-br-de-microsoft-Asp-net-mvc
– Marcos Brinner
I looked at the post, but in my case there is no web.config, as it is Dotnetcore 2.1.
– Thiago Barros
You could post your model?
– Barbetta
look at the @Barbetta response via code
– Marcos Brinner