Date output format in dataviewjs

Thank you – that looks very interesting - albeit too complex for me to debug. For me that yields an error

Evaluation Error: TypeError: Cannot read properties of undefined (reading ‘c’)
at eval (eval at (plugin:dataview), :22:31)
at Array.map ()
at Proxy.map (plugin:dataview:8038:39)
at eval (eval at (plugin:dataview), :18:8)
at DataviewInlineApi.eval (plugin:dataview:18370:16)
at evalInContext (plugin:dataview:18371:7)
at asyncEvalInContext (plugin:dataview:18381:32)
at DataviewJSRenderer.render (plugin:dataview:18402:19)
at DataviewJSRenderer.onload (plugin:dataview:17986:14)
at e.load (app://obsidian.md/app.js:1:631421)

At least when the suggested code is used as below (perhaps not as intended). Many thanks for the help.

.map(k => [
		moment(new Date(k.eventdate.c.year, k.eventdate.c.month -1, k.eventdate.c.day)).format('YYYY-MM-DD'),
        k.who,
        k.description, 
        k.priority,         
        k.latextodo,
        k.mstodo,
        k.otheraction,
        k.file.link 
      ]