const vm = this, const currentDateTime = moment().format("YYYY-MM-DD"); //current date const lastMonth = moment().subtract(1, "month").format("YYYY-MM-DD"); //before one month vm.$set(this.task, "EDate", currentDateTime); vm.$set(this.task, "BDate", lastMonth);
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter