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

81
Views
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
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!