My goal is to utilize the moment()
function within double curly braces {{}}
in order to present a date:
{{ moment().date(timeslot.start.value.month)
.month(timeslot.start.value.dayOfMonth - 1)
.format("MMMM Do")
}}
Unfortunately, I am facing an issue where no HTML is being rendered. Both month
and dayOfMonth
are properly defined, and I have ensured that moment.js is included correctly by testing with console.log()
, which outputs the correct result for a specific date like
moment().date(6).month(6).format("MMMM Do")
, which returns "July 6th"
.
I'm unsure if there's a simple oversight on my part. Any suggestions would be greatly appreciated.