VUE 3 Years countdown

I need to create a countdown for the expiration date in the VUE 3 application. I need the format of YYYY/MM/DD. my search results were using Moment.js.

After installation using:

npm i moment

I could not figure out the right way to use it.

My Code :

   <p> Remaining time: {{moment(moment(30-9-2022) - moment(new Date())}} 

   import moment from "moment";

   export default {

Source: Vue – Stack Overflow

November 15, 2021
Category : News
Tags: countdown | countdowntimer | momentjs | Vue.js

Leave a Reply

Your email address will not be published. Required fields are marked *

Sitemap | Terms | Privacy | Cookies | Advertising

Senior Software Developer

Creator of @LzoMedia I am a backend software developer based in London who likes beautiful code and has an adherence to standards & love's open-source.