havit / Havit.Blazor

Free Bootstrap 5 components for ASP.NET Blazor + optional enterprise-level stack for Blazor development (gRPC code-first, layered architecture, localization, auth, ...)
https://havit.blazor.eu
MIT License
475 stars 66 forks source link

[HxInputDate] [HxInputDateRange] Automatic input conversions consolidation #766

Open hakenr opened 5 months ago

hakenr commented 5 months ago

Currently, the input does some basic conversions:

There are some more to fine-tune, e.g.

Probably the CurrentCulture is not reflected in these conversions (AB#75271):

Pokud v anglické verzi napíšu český formát, tak se špatně konvertuje na ten anglický -> prohodí den a měsíc (z 12.3.2024 udělá 12/3/2024 což je dle anglické konvence třetího prosince). Stejný problém je i na druhou stranu (anglický formát v české verzi).

Add unit-tests!