While outputting a date field through Handlebars to HTML on the server-side, it's giving me a different format than what's visible in the API when debugging. I've tried using both double and triple braces for output. I need that pure UTC time.
API DATA
data: {
date:
html: "<time>Sun Apr 28 2019 19:00:00 GMT-0500 (CDT)</time>",
json: {
value: "2019-04-29T00:00:00.000Z"
}
},
title: {
html: "<h3>Blah blah</h3>",
json: {...}
}
}
TEMPLATE (Handlebars)
<div data-date="{{{ data.date.json.value }}}">
{{ getTextField data 'title' }}
</div>
EXPECTED OUTOUT
<div data-date="2019-04-29T00:00:00.000Z">
<h3>Blah blah</h3>
</div>
ACTUAL OUTPUT
<div data-date="Sun Apr 28 2019 19:00:00 GMT-0500 (CDT)">
<h3>Blah blah</h3>
</div>