Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hakenr opened this issue Mar 12, 2024 · 0 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@hakenr
Copy link
Member

hakenr commented Mar 12, 2024

Currently, the input does some basic conversions:

  • DDMM to new DateTime(current, {MM}, {DD})
  • DDMMYYYY to new DateTime({YYYY}, {MM}, {DD})

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

  • DDMMYY (short year format)
  • DDM (single-diigit month)

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!

@hakenr hakenr added the enhancement New feature or request label Mar 12, 2024
@hakenr hakenr added this to the Priority 2 - Normal milestone Mar 12, 2024
@hakenr hakenr self-assigned this Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant