Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Blazor InputDate Not Honoring the bind-Value:format setting

$
0
0

My client needs all of their date/time inputs to be in 24 hour format. I am finding that even though the setting for the InputDatebind-Value:format="{0:MM/dd/yyyy HH:mm}", some of the users are still presented with a time that shows "AM" or "PM", the 12 hour setting.

Here is a standard setup:

<InputDate @bind-Value="dumpEntry.StartTime"       DisplayName="startTime" Type="InputDateType.DateTimeLocal"       bind-Value:format="{0:MM/dd/yyyy HH:mm}"       class="bg-info-subtle rounded border border-primary" style="width:100%;height:30px" />

Can anyone tell me why this would not work for all users? I have confirmed that one of the users uses Chrome for their browser.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



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