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

98
Views
How to format hidden input field in ftl/html

I have to two fields type text in html, and two datepicker for those fields. Now, when I choose the dates, they automatically populate text fields but in hidden input field those values are stored with the time also.

Like this:

value="2022-04-13T00:00:00+02:00"

Is there a way to format that input to be like this:

value="2022-04-13"

Thanks in advance...

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

What browser are you using? in this code example everything works as you expected.

 <input id="date" type="date"  />
    <input id="hidden" type="hidden"  />
    <script>
      const date = document.querySelector("#date");
      const hidden = document.querySelector("#hidden");
      date.addEventListener("input", (e) => {
        hidden.value = date.value;
      });
    </script>
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!