Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

297
Views
Vue: How to populate an input datetime-local inside a loop?

I got this vue loop that cycles around all games to create a form. The games are valid up to a certain date-time, so I think using an <input type="datetime-local"... /> would do the work, the data is received in format "YYYY-mm-dd HH:mm" ... so I have:

<form ...>
  <div v-for="game in games" :key="game.id">
    <input ...> Home and Away selectors
    <input 
      type="datetime-local" 
      name=...
      v-model="game.valid_until_date"
    />
    ...
  </div>
</form>

My first problem is that I'm not getting the binding, that is value property stays null, I thought it had something to do with the string format. All the other variables I got from the database are working fine, populating my forms as expected.

Of course if I use a simpler <input type="text"... /> things works as expected

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!