How can I retrieve the current date in Vue.js
?
To achieve this, I have utilized the following approach.
today_date: new Date().toJSON().slice(0,10).replace(/-/g,'.')
The variable today_date
will display the date in the format 2019.09.11
.
Is there a way to customize this format? My requirement is to obtain the date in the format 11.09.2019
. It would be beneficial to explore possible solutions for getting the date in various formats.