Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Strange calendar presentation

$
0
0

I have followed the tutorial at https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app/index

When I add DataType attribute (DataType.Date) to the ReleaseDate field of the model, I get a nice calendar (Date picker) in edit mode.
One problem is that this is not working for IE or Firefox (no calendar at all), Edge shows a calendar which works sub-optimal. The only good calendar is shown by Chrome.
Another problem is that these calendars do not obey the PC settings for language, datetime formats or formatting strings (DisplayFormat attribute), not even by adding asp-format in Edit.cshtml. The shown format is always the en-US style on my PC and according to language settings on my Android phone.

What I eventually want is ISO-8601 date (probably) all over.

Anyone may explain how to fix ?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>