Closed kt-vee closed 1 year ago
Hi, I'm using your docs for setting a custom interval countdown (date of May 23, 2023) but am running into an error. Can you let me know where I'm going wrong? It works when I use your NYE count down but breaks on my own countdown.
<script> import SideBar from '../components/UI/SideBar.vue' import SvgIcon from '@jamescoyle/vue-icon'; import { mdiProgressAlert } from '@mdi/js'; import VueCountdown from '@chenfengyuan/vue-countdown'; export default { components: { SideBar, SvgIcon, VueCountdown, }, data() { const now = new Date(); const newLaunch = Date.setDate(("May 23, 2023") + 1, 0, 1); console.log('newLaunch: ' + newLaunch) return { path: mdiProgressAlert, time: newLaunch - now, } }, } </script>
Disregard - was formatting my date wrong!
Hi, I'm using your docs for setting a custom interval countdown (date of May 23, 2023) but am running into an error. Can you let me know where I'm going wrong? It works when I use your NYE count down but breaks on my own countdown.