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

Blazor InputDate Control Display Problem when the Bound Date is Empty

$
0
0

Here is the markup:

<InputDate @bind-Value="@EndTime" Type="InputDateType.DateTimeLocal" bind-Value:format="@DateTimeFormat" style="width:250px" />

The DateTimeFormat = "dd/MM/yyyy HH:mm".

When the control is displayed on the page while EndTime is null,it displays "mm/dd/yyyy --:-- --" as a placeholder. I want the control to be empty when the bound value is null. How can I achieve this? There isn't a placeholder property on the control.

enter image description here

Another bugaboo is that the "AM/PM" is used even though the format calls for a 24 hour time.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



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