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

234
Views
cómo analizar la fecha y la hora de la marca de tiempo en nuxt3

Quiero analizar la fecha y la hora de la siguiente marca de tiempo en mi proyecto Nuxt3 usando Date Fns. en la fecha seleccionada en el calendario, este es el valor que obtenemos.

 const SelectedDate = "Sat Jul 02 2022 14:56:04 GMT+0530 (India Standard Time)"

Quiero extraer la fecha y la hora de esto, como.

 Const Date = "02/07/2022" Const Time = "14:56"

pero me equivoque de hora, como resultado obtengo -

 const Time = "14:07"

He usado esto.

 <script setup> import { ref, reactive } from "vue"; import { format, compareAsc } from 'date-fns' let pickdate = ref(new Date()); const FormattedDate = ref(format(pickdate.value, 'dd/MM/yyyy')) const FormattedTime = ref(format(pickdate.value, 'HH:MM')) </script>
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!