Alter Date Field Format in Custom Code Embed

I found a way to do this.

You need to copy the Field Shortcode from the Editor to other place and it will looks like the next:

{{wf {"path":"published","transformers":[{"name":"date","arguments":["MMM DD, YYYY"]\}],"type":"Date"\} }}

The above is an escaped string, if you unescape it:

{{wf {"path":"published","transformers":[{"name":"date","arguments":["MMM DD, YYYY"]\}],"type":"Date"\} }}

I updated the format to ["YYYY-MM-DD"]

{{wf {"path":"published","transformers":[{"name":"date","arguments":["YYYY-MM-DD"]\}],"type":"Date"\} }}

I used the site to unescape the field code Free Online HTML Escape / Unescape Tool - FreeFormatter.com

The next image is the result I got in the json+ld I’m building

Screen Shot 2023-06-08 at 08.17.58