vue-luxon icon indicating copy to clipboard operation
vue-luxon copied to clipboard

How to use this in the vue templates

Open web-programmer-here opened this issue 3 years ago • 1 comments

I want to use this wrapper but how can I use the luxon docs formatting in vue templates? like this one: (https://github.com/moment/luxon/blob/master/docs/formatting.md)

DateTime.fromISO('2014-08-06T13:07:04.054').toFormat('yyyy LLL dd'); //=> '2014 Aug 06'

what would be the equivalent of this?

I want to get the day name based on day number (1-7)

web-programmer-here avatar Oct 22 '21 02:10 web-programmer-here

tried something like this but doesnt work

{{ day_num | luxon('dddd') }}  // day_num is 1

web-programmer-here avatar Oct 22 '21 03:10 web-programmer-here