nuxt js node code example
Example 1: Nuxt js
methods: {
formatDate(date) {
const options = { year: 'numeric', month: 'long', day: 'numeric' }
return new Date(date).toLocaleDateString('en', options)
}
}
Example 2: Nuxt JS
{{ article.title }}
{{ article.description }}
Article last updated: {{ formatDate(article.updatedAt) }}
Статья 1