I have a asp.net application 4.6.1 and the date that is displayed in my textbox is mm/dd/yyyy but I want dd-mm-yyyy so I am trying to change the global settings to change the date time format but with no success. I would like the project format to be fr-FR if possible.
I tried How do you globally set the date format in ASP.NET? and I tried to add globalization in web.config
<globalization culture="fr-FR" uiCulture="fr-FR"/>
But none of the solution worked for me
Here is my code so far.
</div>
<div class="col-md-4 mb-3">
<label for="validationCreationDate">Fecha creacion</label>
<asp:TextBox ID="txtCreationDate" type="Date" runat="server" class="form-control" placeholder="fecha creacion" aria-describedby="inputGroupPrepend" required="required"></asp:TextBox>
<div class="invalid-feedback">
Please provide a valid place of birth.
</div>
To conclude I would like the mm/dd/yyyy format to be dd-mm-yyyy. Thank you.