Format not working on v-model
See original GitHub issueHello!
I’m formating one component with “dd/MM/yyyy”, on the input field is showing correct, but the value of v-model comes like this: Wed Jul 04 2018 21:00:00 GMT-0300 (-03)
it’s a bug? How i can force to come like the format specified?
Another thing, in one case we force a input to come with a specified date (formated, like: 30/12/1994), the value of v-model is correct but not show the date on input field.
Same input in this two cases.
<datepicker format="dd/MM/yyyy" input-class="form-control" :language="ptBR" v-model="faturamento.data_faturamento"></datepicker>
thanks!
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:5
Top Results From Across the Web
What's the proper way to implement formatting on v-model in ...
For a simple example: textbox to input currency data. The requirement is to display user input in "$1,234,567" format and remove decimal point....
Read more >Using v-model in Vue 3 to build complex forms - LogRocket Blog
Explore the v-model directive and learn how to use multiple v-model bindings on Vue components to simplify the creation of complex forms.
Read more >Why I Don't Use v-model In Forms in Vue.js - YouTube
Check out my course - https://bit.ly/2OETt0M Use v - model in vue forms is really common, but is there a better way? In...
Read more >Form Datepicker | Components - BootstrapVue
The v-model will not be updated in the readonly state. ... The props accept a date string in the format of YYYY-MM-DD or...
Read more >Date & Time Picker - V-Calendar
Use the is24hr prop to adjust the hour select element and default input format for 24-hr mode. <v-date-picker v-model="date" mode="dateTime" is24hr> ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Why this issue is closed? It’s not fixed yet and it is really a bug
same problem as #549