Skip to content
Snippets Groups Projects
Verified Commit d0a9873a authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Moment format filter

parent 2cd90ff4
Branches
Tags
No related merge requests found
......@@ -28,6 +28,13 @@ export function ago (date) {
Vue.filter('ago', ago)
export function momentFormat (date, format) {
format = format || 'lll'
return moment(date).format(format)
}
Vue.filter('moment', momentFormat)
export function capitalize (str) {
return str.charAt(0).toUpperCase() + str.slice(1)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment