Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Format not working on v-model

See original GitHub issue


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>


Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:5

github_iconTop GitHub Comments

amarjit-singhcommented, Mar 7, 2019

Why this issue is closed? It’s not fixed yet and it is really a bug

mprandotcommented, Jul 30, 2018

same problem as #549

Read more comments on GitHub >

github_iconTop 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 - 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found