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

150
Views
Tengo problemas con los datos en formato Datetime2 mientras analizo datos en matriz con Ajax

Quiero seleccionar un grupo de datos de fila en la tabla en función de la identificación que llega al método upNews() . Luego, quiero mostrar algunos valores de columna (como Id , Name , Date ) en la pantalla de alerta después de dividir los datos en la fila seleccionada. Tengo problemas para recuperar o analizar los datos de formato Datetime2 contenidos en la matriz. ¿Cómo puedo ejecutar esto con Ajax?

 var selectedValue; function upNews(pid) { var table = $('#kt_datatable').DataTable(); selectedValue = table.data().filter(x => x.Id == pid)[0]; $('#idd').val(selectedValue.Id); $('#nm').val(selectedValue.Name); /* I'm having trouble using the substring() method. */ $('#dt').val(selectedValue.Date.text.substring(0,10)); alert(selectedValue.Date);
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!