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

207
Views
Format the date right into each table date JavaScript/html

so i have tried many things but i stuck at the point...

I want to format the date the jquery.datepicker has (right in the picture) transfers the same format to the in HTML..

When I click the button to add the data in the table, the format is as you can see (left) in the pic.

    var newRow = table.insertRow(table.length),
    cell2 = newRow.insertCell(1), // Date
    date = document.getElementById("date").value,

more code.... but not important

Thank you guys! ๐Ÿ˜Š

enter image description here

about 4 years ago ยท Juan Pablo Isaza
1 answers
Answer question

0

You will have to change the locale :

  const formatted = date.toLocaleString('fr-FR') // or 'de-DE'

Then insert formatted in your table

about 4 years ago ยท Juan Pablo Isaza Report
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!