Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

82
Visualizações
Computed function not callable for date conversion

I am trying to convert a firebase timestamp to month abbreviation day, year format with the time in parentheses (e.g., 11/4/2021 (time)).

I have the firebase timestamp and I thought I would be able to use a computed function, but I get the vetur warning "This expression is not callable. Type 'String' has no call signatures."

I have only gotten to trying to get the month, date, and year.

<template>
<div>{{ convertDate(timestamp) }}
</template>
<script>
 export default {
computed: {

 convertDate(time) {
    let month = time.getUTCMonth() + 1; 
    let day = time.getUTCDate();
    let year = time.getUTCFullYear();

    return month + " " + day + "," + year;
  },
 },
};
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda