I want points and commas on milles for numbers type 'int' in function of CurrentCulture. I'm trying to use DataFormtString but its not working. For example: 1234567 ==> 123.456.789
I'm working with MVC and i want to format numbers in tables, inputs, etc.
.Replace() or something like that is not a solution, i want it in function of CurrentCulture.
For example:
[DisplayName("Test")]
[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:N}")] // Not working
public int? Example{ get; set; }
In View:
<span class="text">@Model.Example</span>
<input asp-for="Example" class="form-control form-control-sm" />