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

235
Views
¿Cómo extraer el campo en <a> como parámetro de JavaScript?

Chrome agrega un campo de fecha agregada en los enlaces a los marcadores exportados

 <A HREF="https://dex.xrplapps.com/asset.php?ID=CSC" ADD_DATE="1621604954"> xrplapps.com</A>

El formato, etc. se trata aquí.

¿Formato de fecha de exportación de marcadores de Google?

La conversión de javascript provista, aunque excelente, solo inserta un valor arbitrario

 function ConvertToDateTime(srcChromeBookmarkDate) { //Hp --> The base date which google chrome considers while adding bookmarks var baseDate = new Date(1601, 0, 1); //Hp --> Total number of seconds in a day. var totalSecondsPerDay = 86400; //Hp --> Read total number of days and seconds from source chrome bookmark date. var quotient = Math.floor(srcChromeBookmarkDate / 1000000); var totalNoOfDays = Math.floor(quotient / totalSecondsPerDay); var totalNoOfSeconds = quotient % totalSecondsPerDay; //Hp --> Add total number of days to base google chrome date. var targetDate = new Date(baseDate.setDate(baseDate.getDate() + totalNoOfDays)); //Hp --> Add total number of seconds to target date. return new Date(targetDate.setSeconds(targetDate.getSeconds() + totalNoOfSeconds)); } var myDate = ConvertToDateTime(13236951113528894); // <<< Arbitrary Value <<<< alert(myDate);

Cómo;

  • extraer el valor del campo para insertar en la variable myDate
  • mientras extrae solo el específico del enlace en el actual

P.ej

 <DL><p> <DT><A HREF="https://dex.xrplapps.com/asset.php?ID=CSC" ADD_DATE="1621604954"> xrplapps.com</A> <dd>Description: XRP Ledger Asset Statistics</dd> <dd>Date Added: ConvertedDate</dd> </DT> </DL>
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!