I don’t want the month of a custom date field in an Embed to be abbreviated.
I’m using custom code in an Embed element because I am forced to hack around the lack of support for dynamic fields in custom attributes in order to reference a date for the <time>
element’s datetime
attribute.
The code below—originally copied from the HTML Embed Code Editor with fields and pasted into Notepad—does give me the rearranged with hyphens format that I want to see as the datetime
value when I inspect with Chrome DevTools. But if I try to change the display instance from MMM DD, YYYY both values break/disappear.
<time datetime="{{wf {"path":"release-date","transformers":[{"name":"date","arguments":["YYYY-MM-DD"]\}],"type":"Date"\} }}" itemprop="datePublished">{{wf {"path":"release-date","transformers":[{"name":"date","arguments":["MMM DD, YYYY"]\}],"type":"Date"\} }}</time>
I tried different date formats from the Internet to no avail, which I assume is my fault. However, it does seem buggy that I can successfully alter the format of the field in the element attribute, but not in the element content (even copying and pasting the exact same format/code).