How to handle date formatting in forms #15498
Unanswered
wurst-hans
asked this question in
Q&A
Replies: 2 comments
-
First part is solved. I extended
Please notice, that I have to solve second part now, i.e. when form is submitted back to application, then german date format has to be converted to |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello, try use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When working with forms and models, what is the best practise for handling different locales?
In database, all dates are stored in format
yyyy-mm-dd
. Now, I want to write an application for german locale and date format isdd.mm.yyyy
for Germany. So between UI (input field) and form/model the date format has to be converted in both directions.How can I transform database date to german locale before rendering input field? Additionally, what is best practise to handle a date in german format that is submitted to form by user when it comes to form validation and storing in database?
Beta Was this translation helpful? Give feedback.
All reactions