I created an HTML widget and in the HTML section, I put the following code:
<p>Date: #{openingDate}</p>
<p>Date: ${moment(#{openingDate}).format('YYYY-MM-DD')}</p>
Expected Output:
Date: 2015-10-15T00:05:32.000Z
Date: 2015-10-15
Actual Output:
Date: 2015-10-15T00:05:32.000Z
Date: ${moment(#{openingDate}).format('YYYY-MM-DD')}