Matrix Version: 5.5.4
Hi Squiz folk, I have a rest asset and I’m trying to add the following of code.
This is ok
print('<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.17.1/moment.min.js"></script>');
But how do I add the following script to the rest asset?
<script>
var dateMonthAsWord = moment("2019-12-23").format('DD MM YY');
</script>
I’m trying to control the date format in the display output to 23 12 2019
Cheers
N